mirror of
https://github.com/Ellpeck/NaturesAura.git
synced 2024-12-26 00:09:23 +01:00
parent
d81003ae61
commit
0dae10eed4
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ public class BlockOakGenerator extends BlockContainerImpl implements IVisualizab
|
|||
public void onTreeGrow(SaplingGrowTreeEvent event) {
|
||||
IWorld world = event.getWorld();
|
||||
BlockPos pos = event.getPos();
|
||||
if (!world.isRemote() && IAuraType.forWorld(world).isSimilar(NaturesAuraAPI.TYPE_OVERWORLD)
|
||||
if (world instanceof World && !world.isRemote() && IAuraType.forWorld(world).isSimilar(NaturesAuraAPI.TYPE_OVERWORLD)
|
||||
&& world.getBlockState(pos).getBlock() instanceof SaplingBlock) {
|
||||
Helper.getTileEntitiesInArea(world, pos, 10, tile -> {
|
||||
if (!(tile instanceof TileEntityOakGenerator))
|
||||
|
|
Loading…
Reference in a new issue