Add Check
All checks were successful
EnergonRelics/pipeline/head This commit looks good

This commit is contained in:
TheBrokenRail 2020-08-20 15:58:18 -04:00
parent ce2e2df2d5
commit f38f6fbced

View File

@ -100,8 +100,10 @@ public class StructureGeneratorBlock extends SimpleBlockWithEntity {
@Override
public void onBlockAdded(BlockState state, World world, BlockPos pos, BlockState oldState, boolean notify) {
super.onBlockAdded(state, world, pos, oldState, notify);
if (world instanceof ServerWorld) {
schedule(world, pos);
}
}
public void schedule(World world, BlockPos pos) {
world.getBlockTickScheduler().schedule(pos, this, 0);