From 9c12bb5f91d23b4b3e971b1f1f729c72cb0b37fb Mon Sep 17 00:00:00 2001 From: 502647092 Date: Wed, 14 Sep 2016 02:15:58 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=82=AC=E6=B5=AE?= =?UTF-8?q?=E7=89=A9=E5=88=9D=E5=A7=8B=E5=8C=96=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 502647092 --- .../java/org/maxgamer/QuickShop/Shop/ContainerShop.java | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/main/java/org/maxgamer/QuickShop/Shop/ContainerShop.java b/src/main/java/org/maxgamer/QuickShop/Shop/ContainerShop.java index b73dadd..67e7477 100644 --- a/src/main/java/org/maxgamer/QuickShop/Shop/ContainerShop.java +++ b/src/main/java/org/maxgamer/QuickShop/Shop/ContainerShop.java @@ -19,8 +19,6 @@ import org.bukkit.inventory.InventoryHolder; import org.bukkit.inventory.ItemStack; import org.maxgamer.QuickShop.QuickShop; import org.maxgamer.QuickShop.Shop.Item.DisplayItem; -import org.maxgamer.QuickShop.Shop.Item.FakeItem_17; -import org.maxgamer.QuickShop.Shop.Item.NormalItem; import org.maxgamer.QuickShop.Util.MsgUtil; import org.maxgamer.QuickShop.Util.Util; @@ -701,11 +699,7 @@ public class ContainerShop implements Shop { } final boolean trans = Util.isTransparent(getLocation().clone().add(0.5, 1.2, 0.5).getBlock().getType()); if (trans && this.getDisplayItem() == null) { - if (plugin.getConfigManager().isFakeItem()) { - this.displayItem = new FakeItem_17(this, this.getItem()); - } else { - this.displayItem = new NormalItem(this, this.getItem()); - } + this.displayItem = DisplayItem.create(this); this.getDisplayItem().spawn(); return; }