This commit is contained in:
sandtechnology committed 2021-08-04 04:18:51 +08:00
1 parent 9b278d9f0f
commit 65f18100eb
1 file changed
+7 -5
@@ -278,12 +278,14 @@ public class VirtualDisplayItem extends DisplayItem {
int z = integerStructureModifier.read(1);
List<VirtualDisplayItem> targetList = chunksMapping.get(new ShopChunk(player.getWorld().getName(), x, z));
for (VirtualDisplayItem target : targetList) {
if (!target.shop.isLoaded() || !target.isDisplay || target.shop.isLeftShop()) {
return;
if (targetList != null) {
for (VirtualDisplayItem target : targetList) {
if (!target.shop.isLoaded() || !target.isDisplay || target.shop.isLeftShop()) {
return;
}
target.packetSenders.add(player.getUniqueId());
target.sendFakeItem(player);
}
target.packetSenders.add(player.getUniqueId());
target.sendFakeItem(player);
}
}
};