Off-by-one in MC1243 (Distributor)
LadyCailinBot opened this issue ยท 1 comments
CRAFTBOOK-3068 - Reported by Apeiron
A distributor set at 1:1 distributes at a ratio of 2:1 (and similarly with other values of left). Setting it to 0:1 distributes at 1:1.
Can be reproduced with a distributor with 1:1 and a chest with any arbitrary number of stacks. I had used 8 stacks in testing and it put 6 in the right and 2 in the left.
The cause appears to be Distributer.java::goRight's (line 115) left-side test being greater-than rather than greater-than-equal-to, causing it to go left when the current index is less-than the left side but right when equal to it.