mirror of
https://github.com/GTNewHorizons/ThaumicTinkerer.git
synced 2026-11-13 17:04:10 +00:00
Fix boots losing their speed when enchanted and Thaumic Boots is not installed (#76)
This commit is contained in:
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;
|
||||
|
||||
Reference in new issue
Block a user