mirror of
https://e.coding.net/circlecloud/QuickShop.git
synced 2025-10-02 12:37:27 +00:00
@ -689,7 +689,7 @@ public class ContainerShop implements Shop {
|
|||||||
this.getDisplayItem().spawn();
|
this.getDisplayItem().spawn();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (this.getDisplayItem() != null && displayItem instanceof NormalItem) {
|
if (this.getDisplayItem() != null) {
|
||||||
if (!trans) { // We have a display item in a block... delete it
|
if (!trans) { // We have a display item in a block... delete it
|
||||||
this.getDisplayItem().remove();
|
this.getDisplayItem().remove();
|
||||||
this.displayItem = null;
|
this.displayItem = null;
|
||||||
@ -702,6 +702,9 @@ public class ContainerShop implements Shop {
|
|||||||
disItem.remove();
|
disItem.remove();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (disItem instanceof FakeItem) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (disItem.getItem() == null) {
|
if (disItem.getItem() == null) {
|
||||||
disItem.removeDupe();
|
disItem.removeDupe();
|
||||||
disItem.spawn();
|
disItem.spawn();
|
||||||
|
@ -122,7 +122,7 @@ public class FakeItem implements DisplayItem {
|
|||||||
|
|
||||||
public FakeItem(final ContainerShop containerShop, final ItemStack item) {
|
public FakeItem(final ContainerShop containerShop, final ItemStack item) {
|
||||||
this.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();
|
this.eid = getFakeEntityId();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user