mirror of
https://github.com/GTNewHorizons/Electro-Magic-Tools.git
synced 2026-11-20 03:59:36 +00:00
Fix speed & jump modifiers (#109)
This commit is contained in:
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;
|
||||
|
||||
Reference in new issue
Block a user