Support nulled material data.

This commit is contained in:
Brianna 2019-10-23 21:19:05 -04:00
parent 9f4e698e84
commit df9852f4be

View File

@ -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);