diff --git a/src/main/java/org/maxgamer/QuickShop/Shop/ContainerShop.java b/src/main/java/org/maxgamer/QuickShop/Shop/ContainerShop.java index 678d8ec..3b45f1e 100644 --- a/src/main/java/org/maxgamer/QuickShop/Shop/ContainerShop.java +++ b/src/main/java/org/maxgamer/QuickShop/Shop/ContainerShop.java @@ -222,6 +222,9 @@ public class ContainerShop implements Shop { * null if this shop is not attached to another. */ public ContainerShop getAttachedShop() { + if (this.getLocation() != null) { + return null; + } final Block c = Util.getSecondHalf(this.getLocation().getBlock()); if (c == null) { return null;