mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-16 10:34:40 +00:00
Fixed incorrect method being used to stop item use
* See https://github.com/progwml6/HungerOverhaul/issues/29
This commit is contained in:
1 parent
13207628b4
commit
7aabde4587
1 file changed
+1
-1
@@ -80,7 +80,7 @@ public class ItemTornadoRod extends ItemMod {
|
||||
int max = FALL_MULTIPLIER * FLY_TIME;
|
||||
if(stack.getItemDamage() >= max) {
|
||||
setFlying(stack, false);
|
||||
player.setItemInUse(null, 0);
|
||||
player.stopUsingItem();
|
||||
} else if(isFlying(stack)) {
|
||||
player.fallDistance = 0F;
|
||||
player.motionY = 1.25;
|
||||
|
||||
Reference in new issue
Block a user