9
0
mirror of https://github.com/Samsuik/Sakura.git synced 2025-12-26 18:29:07 +00:00

fix dispense relocation issues with dispensers facing up/down

This commit is contained in:
Samsuik
2025-10-26 15:55:05 +00:00
parent 1b6d46d0e6
commit b54160d186

View File

@@ -50,8 +50,8 @@ public final class DispenseRelocationHandler {
final Set<BlockPos> dispensers = new HashSet<>(List.of(pos));
final Direction facing = state.getValue(DispenserBlock.FACING);
// if the source doesn't meet the conditions then don't search
if (!this.doesDispenserMeetConditions(pos, state, facing, true)) {
// check if the source meets the conditions and is facing horizontally
if (facing.getAxis().isVertical() || !this.doesDispenserMeetConditions(pos, state, facing, true)) {
return dispensers;
}