Make the jump action of the sashes require a mana storage device.

Fixes the issue noted in the comments of commit
efd7d84af4
This commit is contained in:
TheWhiteWolves committed 2015-06-27 19:53:54 +01:00
1 parent 6815e281eb
commit d2789a2541
1 file changed
+1 -1
@@ -104,7 +104,7 @@ public class ItemTravelBelt extends ItemBauble implements IBaubleRender {
EntityPlayer player = (EntityPlayer) event.entityLiving;
ItemStack belt = PlayerHandler.getPlayerBaubles(player).getStackInSlot(3);
if(belt != null && belt.getItem() instanceof ItemTravelBelt) {
if(belt != null && belt.getItem() instanceof ItemTravelBelt && ManaItemHandler.requestManaExact(belt, player, COST, false)) {
player.motionY += ((ItemTravelBelt) belt.getItem()).jump;
player.fallDistance = -((ItemTravelBelt) belt.getItem()).fallBuffer;
}