This commit is contained in:
parent
ce2e2df2d5
commit
f38f6fbced
@ -100,8 +100,10 @@ public class StructureGeneratorBlock extends SimpleBlockWithEntity {
|
|||||||
@Override
|
@Override
|
||||||
public void onBlockAdded(BlockState state, World world, BlockPos pos, BlockState oldState, boolean notify) {
|
public void onBlockAdded(BlockState state, World world, BlockPos pos, BlockState oldState, boolean notify) {
|
||||||
super.onBlockAdded(state, world, pos, oldState, notify);
|
super.onBlockAdded(state, world, pos, oldState, notify);
|
||||||
|
if (world instanceof ServerWorld) {
|
||||||
schedule(world, pos);
|
schedule(world, pos);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public void schedule(World world, BlockPos pos) {
|
public void schedule(World world, BlockPos pos) {
|
||||||
world.getBlockTickScheduler().schedule(pos, this, 0);
|
world.getBlockTickScheduler().schedule(pos, this, 0);
|
||||||
|
Reference in New Issue
Block a user