From 41693b5db0fb83a0fcffcae331172a3e62150272 Mon Sep 17 00:00:00 2001 From: Telesphoreo Date: Mon, 28 Sep 2020 09:15:07 -0500 Subject: [PATCH] thank you video, very cool! --- .../com/lishid/openinv/commands/SearchContainerCommand.java | 5 +++++ 1 file changed, 5 insertions(+) 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();