Fix Boots of the Voidwalker (#37)

Co-authored-by: pizzaboi <[email protected]>
This commit is contained in:
sisyphussyandpizzaboi authored and GitHub committed 2025-07-20 08:27:35 +07:00
1 parent 6f2802e0af
commit 094bc5aac5
1 file changed
+2 -2
@@ -177,14 +177,14 @@ public class ItemVoidwalkerBoots 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;