diff --git a/src/main/java/org/maxgamer/QuickShop/Shop/ContainerShop.java b/src/main/java/org/maxgamer/QuickShop/Shop/ContainerShop.java index 0055e03..b46fd27 100644 --- a/src/main/java/org/maxgamer/QuickShop/Shop/ContainerShop.java +++ b/src/main/java/org/maxgamer/QuickShop/Shop/ContainerShop.java @@ -689,7 +689,7 @@ public class ContainerShop implements Shop { this.getDisplayItem().spawn(); return; } - if (this.getDisplayItem() != null && displayItem instanceof NormalItem) { + if (this.getDisplayItem() != null) { if (!trans) { // We have a display item in a block... delete it this.getDisplayItem().remove(); this.displayItem = null; @@ -702,6 +702,9 @@ public class ContainerShop implements Shop { disItem.remove(); return; } + if (disItem instanceof FakeItem) { + return; + } if (disItem.getItem() == null) { disItem.removeDupe(); disItem.spawn(); diff --git a/src/main/java/org/maxgamer/QuickShop/Shop/FakeItem.java b/src/main/java/org/maxgamer/QuickShop/Shop/FakeItem.java index f8ae202..33c0c75 100644 --- a/src/main/java/org/maxgamer/QuickShop/Shop/FakeItem.java +++ b/src/main/java/org/maxgamer/QuickShop/Shop/FakeItem.java @@ -122,7 +122,7 @@ public class FakeItem implements DisplayItem { public FakeItem(final ContainerShop containerShop, final ItemStack item) { this.itemStack = item; - this.location = containerShop.getLocation().clone().add(0.5, 1, 0.5); + this.location = containerShop.getLocation().clone().add(0.5, 1.2, 0.5); this.eid = getFakeEntityId(); }