Cardboard Boxes are now single use

This commit is contained in:
TechnoParadox committed 2022-09-11 19:35:08 +02:00
1 parent 524fa01b11
commit d32bb14c28
1 file changed
+7 -7
@@ -105,15 +105,15 @@ public class BlockCardboardBox extends BlockContainer
data.block.onBlockPlacedBy(world, x, y, z, entityplayer, new ItemStack(data.block, 1, data.meta));
data.block.onPostBlockPlaced(world, x, y, z, data.meta);
}
// float motion = 0.7F;
// double motionX = (world.rand.nextFloat() * motion) + (1.0F - motion) * 0.5D;
// double motionY = (world.rand.nextFloat() * motion) + (1.0F - motion) * 0.5D;
// double motionZ = (world.rand.nextFloat() * motion) + (1.0F - motion) * 0.5D;
float motion = 0.7F;
double motionX = (world.rand.nextFloat() * motion) + (1.0F - motion) * 0.5D;
double motionY = (world.rand.nextFloat() * motion) + (1.0F - motion) * 0.5D;
double motionZ = (world.rand.nextFloat() * motion) + (1.0F - motion) * 0.5D;
// EntityItem entityItem = new EntityItem(world, x + motionX, y + motionY, z + motionZ, itemStack);
EntityItem entityItem = new EntityItem(world, x + motionX, y + motionY, z + motionZ, itemStack);
world.spawnEntityInWorld(entityItem);
// world.spawnEntityInWorld(entityItem);
}
}