mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-19 03:39:17 +00:00
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:
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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user