From d7a1cbbcae9d5ee3eb96ff42069838db5cad8a70 Mon Sep 17 00:00:00 2001 From: sandtechnology Date: Tue, 1 Dec 2020 09:47:09 +0800 Subject: [PATCH] Add missed catching behavior Former-commit-id: 79acec1b2ab272c8502c6b4cc64da54ea358f67e --- .../maxgamer/quickshop/listener/DisplayProtectionListener.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/maxgamer/quickshop/listener/DisplayProtectionListener.java b/src/main/java/org/maxgamer/quickshop/listener/DisplayProtectionListener.java index 1f441b2e7..023358e06 100644 --- a/src/main/java/org/maxgamer/quickshop/listener/DisplayProtectionListener.java +++ b/src/main/java/org/maxgamer/quickshop/listener/DisplayProtectionListener.java @@ -122,7 +122,7 @@ public class DisplayProtectionListener extends ProtectionListenerBase { return; } final Block block = event.getBlock().getRelative(event.getDirection()).getRelative(BlockFace.DOWN); - Shop shop = getShopNature(block.getLocation(), true); + Shop shop = getShopRedstone(block.getLocation(), true); if (shop != null) { event.setCancelled(true); sendAlert(