Fixed a crash with forestry world gen

Closes #176
This commit is contained in:
Ell 2021-01-11 22:41:33 +01:00
parent ec3f1977b6
commit 1d6bfe1762

View file

@ -66,7 +66,7 @@ public class BlockWoodStand extends BlockContainerImpl implements ITESRProvider<
public void onTreeGrow(SaplingGrowTreeEvent event) {
IWorld world = event.getWorld();
BlockPos pos = event.getPos();
if (!world.isRemote()) {
if (!world.isRemote() && world instanceof World) {
if (Multiblocks.TREE_RITUAL.isComplete((World) world, pos)) {
BlockState sapling = world.getBlockState(pos);
ItemStack saplingStack = sapling.getBlock().getItem(world, pos, sapling);