From d42aa5e7bdbb9743f7de055a43676a9e7f8bc654 Mon Sep 17 00:00:00 2001 From: sisyphussy <221229741+sisyphussy@users.noreply.github.com> Date: Mon, 10 Nov 2025 19:51:24 +0100 Subject: [PATCH] Fix speed & jump modifiers (#109) --- .../java/emt/item/armor/boots/ItemElectricBootsTraveller.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/emt/item/armor/boots/ItemElectricBootsTraveller.java b/src/main/java/emt/item/armor/boots/ItemElectricBootsTraveller.java index 8d0b77d..1806b3e 100644 --- a/src/main/java/emt/item/armor/boots/ItemElectricBootsTraveller.java +++ b/src/main/java/emt/item/armor/boots/ItemElectricBootsTraveller.java @@ -273,14 +273,14 @@ public class ItemElectricBootsTraveller extends ItemArmor // Avoid NSM Exception when ThaumicBoots is not present. public double getSpeedModifier(ItemStack stack) { - if (stack.stackTagCompound != null) { + if (stack.stackTagCompound != null && stack.stackTagCompound.hasKey("speed")) { return stack.stackTagCompound.getDouble("speed"); } return 1.0; } public double getJumpModifier(ItemStack stack) { - if (stack.stackTagCompound != null) { + if (stack.stackTagCompound != null && stack.stackTagCompound.hasKey("jump")) { return stack.stackTagCompound.getDouble("jump"); } return 1.0;