mirror of
https://github.com/songoda/EpicFarming.git
synced 2024-11-30 14:33:28 +01:00
null fix
This commit is contained in:
parent
1a4e7e8635
commit
32b71f0d78
@ -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));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user