mirror of
https://github.com/songoda/EpicFarming.git
synced 2024-06-30 08:14:43 +02:00
Support nulled material data.
This commit is contained in:
parent
9f4e698e84
commit
df9852f4be
|
@ -178,7 +178,7 @@ public class ModuleAutoCollect extends Module {
|
|||
Block b2 = block.getWorld().getBlockAt(bx + fx, by + fy, bz + fz);
|
||||
CompatibleMaterial mat = CompatibleMaterial.getMaterial(b2.getType());
|
||||
|
||||
if (!mat.isCrop()) continue;
|
||||
if (mat == null || !mat.isCrop()) continue;
|
||||
|
||||
if (add) {
|
||||
farm.addCachedCrop(b2);
|
||||
|
|
Loading…
Reference in New Issue
Block a user