mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-01 20:52:12 -07:00
SPIGOT-7889: Fix tool component deserialisation without speed and/or correct-for-drops
By: md_5 <git@md-5.net>
This commit is contained in:
@@ -195,8 +195,8 @@ public final class CraftToolComponent implements ToolComponent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public CraftToolRule(Map<String, Object> map) {
|
public CraftToolRule(Map<String, Object> map) {
|
||||||
Float speed = SerializableMeta.getObject(Float.class, map, "speed", false);
|
Float speed = SerializableMeta.getObject(Float.class, map, "speed", true);
|
||||||
Boolean correct = SerializableMeta.getObject(Boolean.class, map, "correct-for-drops", false);
|
Boolean correct = SerializableMeta.getObject(Boolean.class, map, "correct-for-drops", true);
|
||||||
|
|
||||||
HolderSet<Block> blocks = null;
|
HolderSet<Block> blocks = null;
|
||||||
Object blocksObject = SerializableMeta.getObject(Object.class, map, "blocks", false);
|
Object blocksObject = SerializableMeta.getObject(Object.class, map, "blocks", false);
|
||||||
|
Reference in New Issue
Block a user