CraftBook 3

CraftBook 3

139k Downloads

MC1229 Sorter - invert does not work correctly

LadyCailinBot opened this issue ยท 2 comments

commented

CRAFTBOOK-2424 - Reported by damadmax

it's not working as intended.

in Sorter.java Line 87 following if-condition is checked to decide which way to push the items:
if (isInAboveChest(stack) || inverted)

this OR compare does not work:

||isInAboveChest||invert||direction||
|false|false|left|
|true|false|right|
|false|true|right|
|true|true|right|

i think it should be a XOR?

commented

Comment by me4502

Yes, it should be XOR. I'll change that this afternoon

commented

Comment by me4502

Fixed.