mirror of
https://github.com/EarthMC/QuickShop-Reremake.git
synced 2026-11-25 09:59:49 -05:00
Fix NPE
This commit is contained in:
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);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user