From 93e678e7492c038f145a53ce1c788b0a0b2bbfea Mon Sep 17 00:00:00 2001 From: Shevchik Date: Thu, 15 Jan 2015 13:18:34 +0400 Subject: [PATCH] Check up to maxChairWidth blocks when searching for signs --- src/com/cnaude/chairs/listeners/TrySitEventListener.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/cnaude/chairs/listeners/TrySitEventListener.java b/src/com/cnaude/chairs/listeners/TrySitEventListener.java index d8ddfef..0fbe00e 100644 --- a/src/com/cnaude/chairs/listeners/TrySitEventListener.java +++ b/src/com/cnaude/chairs/listeners/TrySitEventListener.java @@ -232,7 +232,7 @@ public class TrySitEventListener implements Listener { private boolean checkSign(Block block, BlockFace face) { // Go through the blocks next to the clicked block and check if are signs on the end. - for (int i = 1; i <= 100; i++) { + for (int i = 1; i <= plugin.maxChairWidth + 1; i++) { Block relative = block.getRelative(face, i); if (checkDirection(block, relative)) { continue;