diff --git a/plugin/src/main/java/com/lishid/openinv/commands/SearchContainerCommand.java b/plugin/src/main/java/com/lishid/openinv/commands/SearchContainerCommand.java index 7242ee9..8defe60 100644 --- a/plugin/src/main/java/com/lishid/openinv/commands/SearchContainerCommand.java +++ b/plugin/src/main/java/com/lishid/openinv/commands/SearchContainerCommand.java @@ -72,6 +72,11 @@ public class SearchContainerCommand implements TabExecutor { } } + if (radius > 20) + { + radius = 20; + } + Player senderPlayer = (Player) sender; World world = senderPlayer.getWorld(); Chunk centerChunk = senderPlayer.getLocation().getChunk();