mirror of
https://github.com/songoda/EpicFarming.git
synced 2024-09-29 07:07:29 +02:00
Fixed issue where farms removed by non players would cause errors.
This commit is contained in:
parent
9262dbff5b
commit
c2317a6006
@ -70,7 +70,7 @@ public class BlockListeners implements Listener {
|
||||
|
||||
int amt = 0;
|
||||
for (Farm farmm : instance.getFarmManager().getFarms().values()) {
|
||||
if (!farmm.getPlacedBy().equals(e.getPlayer().getUniqueId())) continue;
|
||||
if (farmm.getPlacedBy() == null || !farmm.getPlacedBy().equals(e.getPlayer().getUniqueId())) continue;
|
||||
amt++;
|
||||
}
|
||||
int limit = maxFarms(e.getPlayer());
|
||||
|
Loading…
Reference in New Issue
Block a user