mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 03:47:27 +00:00
ScriptDBCPlayer:
-Fixed add function for bonus attributes breaking after a bonus attribute has been removed
This commit is contained in:
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) {
|
||||
|
||||
Reference in new issue
Block a user