mirror of
https://github.com/Ellpeck/NaturesAura.git
synced 2024-12-22 14:59:22 +01:00
parent
96cd5963f5
commit
fd52a3a27d
1 changed files with 2 additions and 1 deletions
|
@ -17,7 +17,7 @@ public class BlockDecayedLeaves extends BlockImpl implements ICustomBlockState {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@SuppressWarnings("deprecation")
|
@SuppressWarnings("deprecation")
|
||||||
public void tick(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) {
|
public void randomTick(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) {
|
||||||
if (!level.isClientSide) {
|
if (!level.isClientSide) {
|
||||||
level.setBlockAndUpdate(pos, Blocks.AIR.defaultBlockState());
|
level.setBlockAndUpdate(pos, Blocks.AIR.defaultBlockState());
|
||||||
}
|
}
|
||||||
|
@ -27,4 +27,5 @@ public class BlockDecayedLeaves extends BlockImpl implements ICustomBlockState {
|
||||||
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