mirror of
https://github.com/songoda/EpicFarming.git
synced 2024-11-30 14:33:28 +01:00
Null check
This commit is contained in:
parent
444ae93fc0
commit
0056ed92f3
@ -82,7 +82,7 @@ public class FarmTask extends BukkitRunnable {
|
||||
Block b2 = block.getWorld().getBlockAt(bx + fx, by + fy, bz + fz);
|
||||
CompatibleMaterial mat = CompatibleMaterial.getMaterial(b2);
|
||||
|
||||
if (!mat.isCrop() || !CropType.isGrowableCrop(mat.getBlockMaterial())) continue;
|
||||
if (mat == null || !mat.isCrop() || !CropType.isGrowableCrop(mat.getBlockMaterial())) continue;
|
||||
|
||||
if (add) {
|
||||
farm.addCachedCrop(b2);
|
||||
|
Loading…
Reference in New Issue
Block a user