Skip to content

Commit 52e0de4

Browse files
committed
prevent player throw out potion or some else widget while click the shop sign
1 parent 853b8e6 commit 52e0de4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/maxgamer/quickshop/shop/ContainerShop.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -937,7 +937,7 @@ public void refresh() {
937937
attachedShop.refresh();
938938
}
939939
// Don't make an item for this chest if it's a left shop.
940-
if (!isLeftShop && !isDisableDisplay()) {
940+
if (!isLeftShop && !isDisableDisplay() && displayItem != null) {
941941
displayItem.spawn();
942942
}
943943
}

0 commit comments

Comments
 (0)