Skip to content

Commit

Permalink
fix: missing check for popup tower ladders
Browse files Browse the repository at this point in the history
  • Loading branch information
Misat11 committed Jul 24, 2024
1 parent 1adcb46 commit 17aee04
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ public void placeLadderRow(int length, Location loc, BlockFace face, BlockFace l
for (int i = 0; i < length; i++) {
lastLoc = lastLoc.getBlock().getRelative(face).getLocation();
final Block ladder = lastLoc.getBlock();
if (!isLocationSafe(lastLoc)) {
if (!isLocationSafe(lastLoc) || !game.isLocationInArena(lastLoc)) {
continue;
}
ladder.setType(Material.LADDER, false);
Expand Down

0 comments on commit 17aee04

Please sign in to comment.