mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-13 11:15:57 -07:00
SPIGOT-4156: Fix deserializing things with damage and meta
By: md_5 <git@md-5.net>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user