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

修复悬浮物消失的问题...

Signed-off-by: 502647092 <jtb1@163.com>
This commit is contained in:
502647092 2016-01-15 00:30:34 +08:00
parent f91a647dd8
commit 0284355c87
2 changed files with 5 additions and 2 deletions

View File

@ -689,7 +689,7 @@ public class ContainerShop implements Shop {
this.getDisplayItem().spawn();
return;
}
if (this.getDisplayItem() != null && displayItem instanceof NormalItem) {
if (this.getDisplayItem() != null) {
if (!trans) { // We have a display item in a block... delete it
this.getDisplayItem().remove();
this.displayItem = null;
@ -702,6 +702,9 @@ public class ContainerShop implements Shop {
disItem.remove();
return;
}
if (disItem instanceof FakeItem) {
return;
}
if (disItem.getItem() == null) {
disItem.removeDupe();
disItem.spawn();

View File

@ -122,7 +122,7 @@ public class FakeItem implements DisplayItem {
public FakeItem(final ContainerShop containerShop, final 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();
}