From 3919314de03efa06d9ef3d5f2fba97aa80dd55fa Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Sat, 31 Aug 2024 08:49:31 +1000 Subject: [PATCH] SPIGOT-7889: Fix tool component deserialisation without speed and/or correct-for-drops By: md_5 --- .../craftbukkit/inventory/components/CraftToolComponent.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/inventory/components/CraftToolComponent.java b/paper-server/src/main/java/org/bukkit/craftbukkit/inventory/components/CraftToolComponent.java index 7f6afd69f7..7b909a3fab 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/inventory/components/CraftToolComponent.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/inventory/components/CraftToolComponent.java @@ -195,8 +195,8 @@ public final class CraftToolComponent implements ToolComponent { } public CraftToolRule(Map map) { - Float speed = SerializableMeta.getObject(Float.class, map, "speed", false); - Boolean correct = SerializableMeta.getObject(Boolean.class, map, "correct-for-drops", false); + Float speed = SerializableMeta.getObject(Float.class, map, "speed", true); + Boolean correct = SerializableMeta.getObject(Boolean.class, map, "correct-for-drops", true); HolderSet blocks = null; Object blocksObject = SerializableMeta.getObject(Object.class, map, "blocks", false);