SPIGOT-4156: Fix deserializing things with damage and meta

This commit is contained in:
md_5 2018-07-26 08:51:53 +10:00
parent 22efc69710
commit 3607913caf

View file

@ -488,6 +488,13 @@ public class ItemStack implements Cloneable, ConfigurationSerializable {
} }
} }
if (version < 0) {
// Set damage again incase meta overwrote it
if (args.containsKey("damage")) {
result.setDurability(damage);
}
}
return result; return result;
} }