ScriptDBCPlayer:

-Fixed add function for bonus attributes breaking after a bonus attribute has been removed
This commit is contained in:
Luis C.M committed 2023-07-27 11:53:31 -05:00
1 parent 3d40e2dfd1
commit e759310bcf
1 file changed
+1 -1
@@ -258,7 +258,7 @@ public class ScriptDBCPlayer<T extends EntityPlayerMP> extends ScriptPlayer<T> i
if (bonus.length() == 0) {
bonus = bonusID + ";" + bonusValueString;
} else {
bonus = bonus + "|" + bonusID + ";" + bonusValueString;
bonus = bonus + (bonus.charAt(bonus.length() - 1) == '|' ? "" : "|") + bonusID + ";" + bonusValueString;
}
} else {
if (bonus.length() == 0) {