mirror of
https://github.com/songoda/EpicFarming.git
synced 2025-03-01 19:01:12 +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)) {
|
for (Block block : getCrops(farm, true)) {
|
||||||
|
if (!CropType.isCrop(block.getType())) continue;
|
||||||
Crops crop = (Crops) block.getState().getData();
|
Crops crop = (Crops) block.getState().getData();
|
||||||
|
|
||||||
|
|
||||||
// Add to GrowthTask
|
// Add to GrowthTask
|
||||||
plugin.getGrowthTask().addLiveCrop(block.getLocation(), new Crop(block.getLocation(), farm));
|
plugin.getGrowthTask().addLiveCrop(block.getLocation(), new Crop(block.getLocation(), farm));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user