mirror of
https://github.com/songoda/EpicFarming.git
synced 2024-09-30 15:47:31 +02:00
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:
parent
d41670d212
commit
514ba25999
@ -50,7 +50,7 @@ public class Farm implements Data {
|
|||||||
private UUID viewing = null;
|
private UUID viewing = null;
|
||||||
private long lastCached = 0;
|
private long lastCached = 0;
|
||||||
|
|
||||||
private FarmType farmType = FarmType.BOTH;
|
private FarmType farmType;
|
||||||
|
|
||||||
private final Map<String, Object> moduleCache = new HashMap<>();
|
private final Map<String, Object> moduleCache = new HashMap<>();
|
||||||
|
|
||||||
|
@ -99,7 +99,7 @@ public class BlockListeners implements Listener {
|
|||||||
return;
|
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.getFarmManager().addFarm(location, farm);
|
||||||
this.plugin.getDataManager().save(farm);
|
this.plugin.getDataManager().save(farm);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user