diff --git a/EpicFarming-Plugin/src/main/java/com/songoda/epicfarming/tasks/FarmTask.java b/EpicFarming-Plugin/src/main/java/com/songoda/epicfarming/tasks/FarmTask.java index abd0916..d27904a 100644 --- a/EpicFarming-Plugin/src/main/java/com/songoda/epicfarming/tasks/FarmTask.java +++ b/EpicFarming-Plugin/src/main/java/com/songoda/epicfarming/tasks/FarmTask.java @@ -49,8 +49,10 @@ public class FarmTask extends BukkitRunnable { } for (Block block : getCrops(farm, true)) { + if (!CropType.isCrop(block.getType())) continue; Crops crop = (Crops) block.getState().getData(); + // Add to GrowthTask plugin.getGrowthTask().addLiveCrop(block.getLocation(), new Crop(block.getLocation(), farm));