mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-12-15 23:03:41 +01:00
Fix belt keeping dropping item in debug world
This commit is contained in:
parent
9c5987310e
commit
5ac6ded468
1 changed files with 2 additions and 1 deletions
|
@ -54,6 +54,7 @@ import net.minecraft.util.math.shapes.VoxelShape;
|
|||
import net.minecraft.world.IBlockReader;
|
||||
import net.minecraft.world.IWorldReader;
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraft.world.WorldType;
|
||||
import net.minecraft.world.storage.loot.LootParameters;
|
||||
import net.minecraftforge.api.distmarker.Dist;
|
||||
import net.minecraftforge.api.distmarker.OnlyIn;
|
||||
|
@ -393,7 +394,7 @@ public class BeltBlock extends HorizontalKineticBlock implements ITE<BeltTileEnt
|
|||
// }
|
||||
|
||||
public static void initBelt(World world, BlockPos pos) {
|
||||
if (world.isRemote)
|
||||
if (world.isRemote || world.getWorldType() == WorldType.DEBUG_ALL_BLOCK_STATES)
|
||||
return;
|
||||
|
||||
BlockState state = world.getBlockState(pos);
|
||||
|
|
Loading…
Reference in a new issue