walk on water hunger penalty

This commit is contained in:
Leijurv
2018-12-19 22:01:47 -08:00
parent 02478ee887
commit ae9ab03e51
4 changed files with 15 additions and 0 deletions

View File

@@ -75,6 +75,8 @@ public class MovementTraverse extends Movement {
} else {
if (destOn.getBlock() == Blocks.SOUL_SAND) {
WC += (WALK_ONE_OVER_SOUL_SAND_COST - WALK_ONE_BLOCK_COST) / 2;
} else if (destOn.getBlock() == Blocks.WATER) {
WC += context.walkOnWaterOnePenalty();
}
if (srcDown == Blocks.SOUL_SAND) {
WC += (WALK_ONE_OVER_SOUL_SAND_COST - WALK_ONE_BLOCK_COST) / 2;