Level 0 farming items don't exist.

This commit is contained in:
Brianna 2020-05-17 12:47:40 -04:00
parent c12a0d4af7
commit 6f7c0db418

View File

@ -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();