mirror of
https://hub.spigotmc.org/stash/scm/spigot/bukkit.git
synced 2025-08-31 22:22:49 +00:00
SPIGOT-4156: Fix deserializing things with damage and meta
This commit is contained in:
parent
22efc69710
commit
3607913caf
1 changed files with 7 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue