Crushing More Bugs

-Increase the size of the window in which the crusher picks up items to avoid it skipping over items at some of the highest speeds.
This commit is contained in:
_0Steven 2021-01-26 19:11:45 +01:00
parent f1c8e92686
commit 53a6ad00d5

View file

@ -37,7 +37,7 @@ public class BeltCrusherInteractionHandler {
float crusherEntry = segment + .5f; float crusherEntry = segment + .5f;
crusherEntry += .399f * (beltMovementPositive ? -1 : 1); crusherEntry += .399f * (beltMovementPositive ? -1 : 1);
float postCrusherEntry = crusherEntry + .199f * (!beltMovementPositive ? -1 : 1); float postCrusherEntry = crusherEntry + .799f * (!beltMovementPositive ? -1 : 1);
boolean hasCrossed = nextOffset > crusherEntry && nextOffset < postCrusherEntry && beltMovementPositive boolean hasCrossed = nextOffset > crusherEntry && nextOffset < postCrusherEntry && beltMovementPositive
|| nextOffset < crusherEntry && nextOffset > postCrusherEntry && !beltMovementPositive; || nextOffset < crusherEntry && nextOffset > postCrusherEntry && !beltMovementPositive;