Ancient porting oversight

- Fixed mechanical belts playing destroy effects when placed
This commit is contained in:
simibubi 2021-01-13 15:30:25 +01:00
parent 27b5f5b479
commit 8ba0099e60

View File

@ -358,6 +358,8 @@ public class BeltBlock extends HorizontalKineticBlock implements ITE<BeltTileEnt
} }
public static void initBelt(World world, BlockPos pos) { public static void initBelt(World world, BlockPos pos) {
if (world.isRemote)
return;
if (world instanceof ServerWorld && ((ServerWorld) world).getChunkProvider().getChunkGenerator() instanceof DebugChunkGenerator) if (world instanceof ServerWorld && ((ServerWorld) world).getChunkProvider().getChunkGenerator() instanceof DebugChunkGenerator)
return; return;