this lets proguard optimize out one more double division
This commit is contained in:
parent
09e94eaa8e
commit
bec7f9be96
@ -141,7 +141,7 @@ public class MovementTraverse extends Movement {
|
||||
if (srcDown == Blocks.FLOWING_WATER || srcDown == Blocks.WATER) {
|
||||
return COST_INF; // this is obviously impossible
|
||||
}
|
||||
WC = WC * SNEAK_ONE_BLOCK_COST / WALK_ONE_BLOCK_COST;//since we are sneak backplacing, we are sneaking lol
|
||||
WC = WC * (SNEAK_ONE_BLOCK_COST / WALK_ONE_BLOCK_COST);//since we are sneak backplacing, we are sneaking lol
|
||||
return WC + context.placeBlockCost + hardness1 + hardness2;
|
||||
}
|
||||
return COST_INF;
|
||||
|
Loading…
Reference in New Issue
Block a user