don't walk or fall through webs or end portals

This commit is contained in:
Leijurv 2018-08-17 14:11:58 -07:00
parent f3d9ada675
commit 03ec4d39ee
No known key found for this signature in database
GPG Key ID: 44A3EA646EADAC6A

View File

@ -70,7 +70,9 @@ public interface MovementHelper extends ActionCosts, Helper {
Block block = state.getBlock();
if (block instanceof BlockLilyPad
|| block instanceof BlockFire
|| block instanceof BlockTripWire) {//you can't actually walk through a lilypad from the side, and you shouldn't walk through fire
|| block instanceof BlockTripWire
|| block instanceof BlockWeb
|| block instanceof BlockEndPortal) {//you can't actually walk through a lilypad from the side, and you shouldn't walk through fire
return false;
}
if (BlockStateInterface.isFlowing(state) || BlockStateInterface.isLiquid(pos.up())) {