mirror of
https://github.com/GTNewHorizons/Tainted-Magic.git
synced 2026-11-26 14:53:07 +00:00
Fix Boots of the Voidwalker (#37)
Co-authored-by: pizzaboi <[email protected]>
This commit is contained in:
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;
|
||||
|
||||
Reference in new issue
Block a user