Fix speed & jump modifiers (#109)

This commit is contained in:
sisyphussy authored and GitHub committed 2025-11-10 19:51:24 +01:00
1 parent 824b6bc3b4
commit d42aa5e7bd
1 file changed
+2 -2
@@ -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;