Prevent unnecessary overwriting of the action bar when there is nothing
to put there.
This commit is contained in:
parent
1bb9d2727b
commit
6be55e3cf2
Binary file not shown.
@ -45,7 +45,11 @@ public class ActionBarBuffUpdater{
|
|||||||
effectString.append(" ");
|
effectString.append(" ");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (effectString.length()>0) {
|
||||||
return effectString.toString()+ChatColor.RESET;
|
return effectString.toString()+ChatColor.RESET;
|
||||||
|
} else {
|
||||||
|
return "";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private static String ParseEffect(LivingEntity p, PotionEffect pe) {
|
private static String ParseEffect(LivingEntity p, PotionEffect pe) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user