Fix ME Chest attributes being exposed on the wrong side.

This commit is contained in:
Sebastian Hartte
2020-09-19 13:59:09 +02:00
parent 5be0adbc89
commit b5a90357c0
@@ -722,11 +722,11 @@ public class ChestBlockEntity extends AENetworkPowerBlockEntity
public void addAllAttributes(World world, BlockPos pos, BlockState state, AttributeList<?> to) {
super.addAllAttributes(world, pos, state, to);
if (fluidInsertable != null && to.getSearchDirection() != getForward()) {
if (fluidInsertable != null && to.getSearchDirection() != getForward().getOpposite()) {
to.offer(fluidInsertable);
}
if (accessor != null && to.getSearchDirection() != getForward()) {
if (accessor != null && to.getSearchDirection() != getForward().getOpposite()) {
to.offer(accessor);
}
}