Skip to content

Commit

Permalink
Update ExprNBTOf.java
Browse files Browse the repository at this point in the history
  • Loading branch information
FurkannM authored Sep 16, 2018
1 parent 66796d9 commit 04f1ede
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/com/furkannm/skriptnms/expressions/ExprNBTOf.java
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public void change(Event e, Object[] args, ChangeMode mode) {
NMS.setEntityNBT((Entity) tar, NBTTagCompound.get().cast(entNBT));
} else if (mode == ChangeMode.REMOVE) {
for (Object s : args) {
if (s != "UUIDMost" || s != "UUIDLeast" || s != "WorldUUIDMost" || s != "WorldUUIDLeast" || s != "Bukkit.updateLevel") { // Prevent crucial data from being modified
if (s != "UUIDMost" || s != "UUIDLeast" || s != "WorldUUIDMost" || s != "WorldUUIDLeast" || s != "Bukkit.updateLevel") {
NMS.removeFromCompound(NBTTagCompound.get().cast(entNBT), (String) s);
}
}
Expand Down

0 comments on commit 04f1ede

Please sign in to comment.