Prevent unnecessary overwriting of the action bar when there is nothing

to put there.
This commit is contained in:
sigonasr2 2016-09-19 20:59:58 -05:00
parent 1bb9d2727b
commit 6be55e3cf2
2 changed files with 5 additions and 1 deletions

Binary file not shown.

View File

@ -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) {