mirror of
https://e.coding.net/circlecloud/QuickShop.git
synced 2025-10-02 12:37:27 +00:00
@ -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;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user