Fix default farm type in BlockListener

You can see in the Farm class and in `com/songoda/epicfarming/EpicFarming.java:219` that it
wants to default to `BOTH`
This commit is contained in:
Christian Koop 2023-07-01 11:09:49 +02:00
parent d41670d212
commit 514ba25999
No known key found for this signature in database
GPG Key ID: 89A8181384E010A3
2 changed files with 2 additions and 2 deletions

View File

@ -50,7 +50,7 @@ public class Farm implements Data {
private UUID viewing = null;
private long lastCached = 0;
private FarmType farmType = FarmType.BOTH;
private FarmType farmType;
private final Map<String, Object> moduleCache = new HashMap<>();

View File

@ -99,7 +99,7 @@ public class BlockListeners implements Listener {
return;
}
Farm farm = new Farm(location, this.plugin.getLevelManager().getLevel(level == 0 ? 1 : level), e.getPlayer().getUniqueId(), FarmType.CROPS); //TODO check if the FarmType is correct
Farm farm = new Farm(location, this.plugin.getLevelManager().getLevel(level == 0 ? 1 : level), e.getPlayer().getUniqueId(), FarmType.BOTH);
this.plugin.getFarmManager().addFarm(location, farm);
this.plugin.getDataManager().save(farm);