mirror of
https://github.com/songoda/EpicFarming.git
synced 2024-11-27 13:05:11 +01:00
Level 0 farming items don't exist.
This commit is contained in:
parent
c12a0d4af7
commit
6f7c0db418
@ -92,7 +92,7 @@ public class BlockListeners implements Listener {
|
||||
Bukkit.getScheduler().runTaskLater(instance, () -> {
|
||||
if (location.getBlock().getType() != farmBlock) return;
|
||||
|
||||
Farm farm = new Farm(location, instance.getLevelManager().getLevel(level == 0 ? 1 : 0), e.getPlayer().getUniqueId());
|
||||
Farm farm = new Farm(location, instance.getLevelManager().getLevel(level == 0 ? 1 : level), e.getPlayer().getUniqueId());
|
||||
instance.getFarmManager().addFarm(location, farm);
|
||||
|
||||
farm.tillLand();
|
||||
|
Loading…
Reference in New Issue
Block a user