From cdf5f8ba560587b41d2cf7672e1024f7506daefb Mon Sep 17 00:00:00 2001 From: sandtechnology Date: Thu, 29 Jul 2021 03:23:49 +0800 Subject: [PATCH] Fix another display disappear bug --- .../java/org/maxgamer/quickshop/shop/ContainerShop.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/maxgamer/quickshop/shop/ContainerShop.java b/src/main/java/org/maxgamer/quickshop/shop/ContainerShop.java index 244689670..7591b5ab4 100644 --- a/src/main/java/org/maxgamer/quickshop/shop/ContainerShop.java +++ b/src/main/java/org/maxgamer/quickshop/shop/ContainerShop.java @@ -167,15 +167,15 @@ public class ContainerShop implements Shop { Chunk chunk = getLocation().getChunk(); switch (DisplayItem.getNowUsing()) { case REALITEM: - this.displayItem = new RealDisplayItem(this, chunk.getWorld().getName(), chunk.getX(), chunk.getX()); + this.displayItem = new RealDisplayItem(this, chunk.getWorld().getName(), chunk.getX(), chunk.getZ()); break; case VIRTUALITEM: - this.displayItem = new VirtualDisplayItem(this, chunk.getWorld().getName(), chunk.getX(), chunk.getX()); + this.displayItem = new VirtualDisplayItem(this, chunk.getWorld().getName(), chunk.getX(), chunk.getZ()); break; default: Util.debugLog( "Warning: Failed to create a ContainerShop displayItem, the type we didn't know, fallback to RealDisplayItem"); - this.displayItem = new RealDisplayItem(this, chunk.getWorld().getName(), chunk.getX(), chunk.getX()); + this.displayItem = new RealDisplayItem(this, chunk.getWorld().getName(), chunk.getX(), chunk.getZ()); break; } }