1
0
mirror of https://e.coding.net/circlecloud/QuickShop.git synced 2024-11-22 01:58:54 +00:00

fix: 修复悬浮物初始化错误

Signed-off-by: 502647092 <admin@yumc.pw>
This commit is contained in:
502647092 2016-09-14 02:15:58 +08:00
parent 0c9a014c13
commit 9c12bb5f91

View File

@ -19,8 +19,6 @@ import org.bukkit.inventory.InventoryHolder;
import org.bukkit.inventory.ItemStack; import org.bukkit.inventory.ItemStack;
import org.maxgamer.QuickShop.QuickShop; import org.maxgamer.QuickShop.QuickShop;
import org.maxgamer.QuickShop.Shop.Item.DisplayItem; 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.MsgUtil;
import org.maxgamer.QuickShop.Util.Util; 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()); final boolean trans = Util.isTransparent(getLocation().clone().add(0.5, 1.2, 0.5).getBlock().getType());
if (trans && this.getDisplayItem() == null) { if (trans && this.getDisplayItem() == null) {
if (plugin.getConfigManager().isFakeItem()) { this.displayItem = DisplayItem.create(this);
this.displayItem = new FakeItem_17(this, this.getItem());
} else {
this.displayItem = new NormalItem(this, this.getItem());
}
this.getDisplayItem().spawn(); this.getDisplayItem().spawn();
return; return;
} }