mirror of
https://github.com/Ellpeck/NaturesAura.git
synced 2024-11-26 05:08:34 +01:00
parent
7f4d6da0a6
commit
82d72d8b57
1 changed files with 7 additions and 2 deletions
|
@ -79,8 +79,8 @@ public class BlockAncientLeaves extends LeavesBlock implements IModItem, IColorP
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void tick(BlockState state, ServerWorld worldIn, BlockPos pos, Random random) {
|
public void randomTick(BlockState state, ServerWorld worldIn, BlockPos pos, Random random) {
|
||||||
super.tick(state, worldIn, pos, random);
|
super.randomTick(state, worldIn, pos, random);
|
||||||
if (!worldIn.isRemote) {
|
if (!worldIn.isRemote) {
|
||||||
TileEntity tile = worldIn.getTileEntity(pos);
|
TileEntity tile = worldIn.getTileEntity(pos);
|
||||||
if (tile instanceof TileEntityAncientLeaves) {
|
if (tile instanceof TileEntityAncientLeaves) {
|
||||||
|
@ -91,6 +91,11 @@ public class BlockAncientLeaves extends LeavesBlock implements IModItem, IColorP
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean ticksRandomly(BlockState state) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void generateCustomBlockState(BlockStateGenerator generator) {
|
public void generateCustomBlockState(BlockStateGenerator generator) {
|
||||||
generator.simpleBlock(this, generator.models().getExistingFile(generator.modLoc(this.getBaseName())));
|
generator.simpleBlock(this, generator.models().getExistingFile(generator.modLoc(this.getBaseName())));
|
||||||
|
|
Loading…
Reference in a new issue