mirror of
https://github.com/EarthMC/QuickShop-Reremake.git
synced 2026-11-24 17:39:52 -05:00
Remove isEmpty
Former-commit-id: 5ad6b64988dc94cfd0779b47f07f7b8ac34728df
This commit is contained in:
1 parent
97a6634577
commit
868d9ba4da
1 file changed
+2
-2
@@ -45,7 +45,7 @@ public class ChunkListener implements Listener {
|
||||
return;
|
||||
}
|
||||
final Map<Location, Shop> inChunk = plugin.getShopManager().getShops(e.getChunk());
|
||||
if (inChunk == null || inChunk.isEmpty()) {
|
||||
if (inChunk == null) {
|
||||
return;
|
||||
}
|
||||
Bukkit.getScheduler().runTaskLater(plugin, () -> {
|
||||
@@ -58,7 +58,7 @@ public class ChunkListener implements Listener {
|
||||
@EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true)
|
||||
public void onChunkUnload(ChunkUnloadEvent e) {
|
||||
final Map<Location, Shop> inChunk = plugin.getShopManager().getShops(e.getChunk());
|
||||
if (inChunk == null || inChunk.isEmpty()) {
|
||||
if (inChunk == null) {
|
||||
return;
|
||||
}
|
||||
for (Shop shop : inChunk.values()) {
|
||||
|
||||
Reference in new issue
Block a user