Skip to content

Commit fb01eee

Browse files
committed
Don't set display to null because it may re-used
1 parent da4a71e commit fb01eee

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,6 @@ public void checkDisplay() {
360360
if(this.displayItem.isSpawned()){
361361
this.displayItem.remove();
362362
}
363-
this.displayItem = null;
364363
}
365364
return;
366365
}
@@ -533,11 +532,9 @@ public void onUnload() {
533532
}
534533
if (inventoryPreview != null) {
535534
inventoryPreview.close();
536-
inventoryPreview = null;
537535
}
538536
if (this.displayItem != null) {
539537
this.displayItem.remove();
540-
this.displayItem = null;
541538
}
542539
update();
543540
this.isLoaded = false;

0 commit comments

Comments
 (0)