Remove isEmpty

Former-commit-id: 5ad6b64988dc94cfd0779b47f07f7b8ac34728df
This commit is contained in:
Ghost_chu committed 2020-04-10 10:23:02 +08:00
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()) {