Fix unprotected block access

This commit is contained in:
Glease authored and GitHub committed 2021-11-05 16:00:12 +08:00
1 parent 689a822058
commit d4e58b84c8
1 file changed
+3
@@ -191,6 +191,9 @@ public final class FlowerRegistry implements IFlowerRegistry, IFlowerGrowthHelpe
return false;
}
if (!world.blockExists(x, y, z))
return false;
Set<IFlowerAcceptableRule> acceptedCustom = this.registeredRules.get(flowerType);
for (IFlowerAcceptableRule acceptableFlower : acceptedCustom) {
if (acceptableFlower.isAcceptableFlower(flowerType, world, x, y, z)) {