Fix boots losing their speed when enchanted and Thaumic Boots is not installed (#76)

This commit is contained in:
koolkrafter5 authored and GitHub committed 2025-10-04 01:38:53 +02:00
1 parent 0272517b10
commit b9e61335e3
1 file changed
+2 -2
@@ -185,14 +185,14 @@ public class ItemGemBoots extends ItemIchorclothArmorAdv implements IBoots {
// 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;