mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-19 03:39:17 +00:00
The Soujourner's and Globetrotter's Sashes no longer work underwater, so you can't go at hyperspeed underwater.
This commit is contained in:
1 parent
4e8ee7002f
commit
055878fbef
1 file changed
+2
-1
@@ -11,6 +11,7 @@
|
||||
*/
|
||||
package vazkii.botania.common.item.equipment.bauble;
|
||||
|
||||
import net.minecraft.block.material.Material;
|
||||
import net.minecraft.entity.EntityLivingBase;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.ItemStack;
|
||||
@@ -50,7 +51,7 @@ public class ItemTravelBelt extends ItemBauble {
|
||||
|
||||
if(entity instanceof EntityPlayer) {
|
||||
EntityPlayer player = (EntityPlayer) entity;
|
||||
if((player.onGround || player.capabilities.isFlying) && player.moveForward > 0F)
|
||||
if((player.onGround || player.capabilities.isFlying) && player.moveForward > 0F && !player.isInsideOfMaterial(Material.water))
|
||||
player.moveFlying(0F, 1F, player.capabilities.isFlying ? speed : speed * 2);
|
||||
|
||||
if(player.isSneaking())
|
||||
|
||||
Reference in new issue
Block a user