mirror of
https://github.com/songoda/EpicFarming.git
synced 2024-09-30 15:47:31 +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);
|
Block b2 = block.getWorld().getBlockAt(bx + fx, by + fy, bz + fz);
|
||||||
CompatibleMaterial mat = CompatibleMaterial.getMaterial(b2.getType());
|
CompatibleMaterial mat = CompatibleMaterial.getMaterial(b2.getType());
|
||||||
|
|
||||||
if (!mat.isCrop()) continue;
|
if (mat == null || !mat.isCrop()) continue;
|
||||||
|
|
||||||
if (add) {
|
if (add) {
|
||||||
farm.addCachedCrop(b2);
|
farm.addCachedCrop(b2);
|
||||||
|
Loading…
Reference in New Issue
Block a user