mirror of
https://github.com/Ellpeck/NaturesAura.git
synced 2024-11-22 11:53:29 +01:00
parent
ec3f1977b6
commit
1d6bfe1762
1 changed files with 1 additions and 1 deletions
|
@ -66,7 +66,7 @@ public class BlockWoodStand extends BlockContainerImpl implements ITESRProvider<
|
||||||
public void onTreeGrow(SaplingGrowTreeEvent event) {
|
public void onTreeGrow(SaplingGrowTreeEvent event) {
|
||||||
IWorld world = event.getWorld();
|
IWorld world = event.getWorld();
|
||||||
BlockPos pos = event.getPos();
|
BlockPos pos = event.getPos();
|
||||||
if (!world.isRemote()) {
|
if (!world.isRemote() && world instanceof World) {
|
||||||
if (Multiblocks.TREE_RITUAL.isComplete((World) world, pos)) {
|
if (Multiblocks.TREE_RITUAL.isComplete((World) world, pos)) {
|
||||||
BlockState sapling = world.getBlockState(pos);
|
BlockState sapling = world.getBlockState(pos);
|
||||||
ItemStack saplingStack = sapling.getBlock().getItem(world, pos, sapling);
|
ItemStack saplingStack = sapling.getBlock().getItem(world, pos, sapling);
|
||||||
|
|
Loading…
Reference in a new issue