Skip to content

Commit

Permalink
Repeaters always have maximum power, fixes #1628
Browse files Browse the repository at this point in the history
  • Loading branch information
SamB440 committed Aug 9, 2024
1 parent 0b058c1 commit 3cdb765
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ public int getRawPowerAtState(BlockFace face, int x, int y, int z) {
} else if (state.getType() == StateTypes.OBSERVER) {
return state.getFacing() == face && state.isPowered() ? 15 : 0;
} else if (state.getType() == StateTypes.REPEATER) {
return state.getFacing() == face && state.isPowered() ? state.getPower() : 0;
return state.getFacing() == face && state.isPowered() ? 15 : 0;
} else if (state.getType() == StateTypes.LECTERN) {
return state.isPowered() ? 15 : 0;
} else if (state.getType() == StateTypes.TARGET) {
Expand Down Expand Up @@ -531,7 +531,7 @@ public int getDirectSignalAtState(BlockFace face, int x, int y, int z) {
} else if (state.getType() == StateTypes.OBSERVER) {
return state.getFacing() == face && state.isPowered() ? 15 : 0;
} else if (state.getType() == StateTypes.REPEATER) {
return state.getFacing() == face && state.isPowered() ? state.getPower() : 0;
return state.getFacing() == face && state.isPowered() ? 15 : 0;
} else if (state.getType() == StateTypes.REDSTONE_WIRE) {
BlockFace needed = face.getOppositeFace();

Expand Down

0 comments on commit 3cdb765

Please sign in to comment.