block drop fix for fallout effects

This commit is contained in:
Bob 2023-08-14 20:11:26 +02:00
parent 6b381821b8
commit 35d9e49f23
2 changed files with 2 additions and 1 deletions

View File

@ -27,7 +27,7 @@
* Removed the special nuclear meteorite
## Fixed
* Fixed thermos craching config hitting before the config is saved, resulting in an empty config the first time the server is launched
* Fixed thermos crashing config hitting before the config is saved, resulting in an empty config the first time the server is launched
* Fixed heating oven not visually connecting to exhaust pipes
* Fixed loot blocks not correctly rendering items that require multiple render passes
* Fixed special meteorites spawning in worldgen

View File

@ -179,6 +179,7 @@ public class EntityFalloutRain extends Entity {
hardness = worldObj.getBlock(x, y + i, z).getBlockHardness(worldObj, x, y + i, z);
if(hardness <= Blocks.stonebrick.getExplosionResistance(null) && hardness >= 0) {
EntityFallingBlock entityfallingblock = new EntityFallingBlock(worldObj, x + 0.5D, y + 0.5D + i, z + 0.5D, worldObj.getBlock(x, y + i, z), worldObj.getBlockMetadata(x, y + i, z));
entityfallingblock.field_145813_c = false; //turn off block drops because block dropping was coded by a mule with dementia
worldObj.spawnEntityInWorld(entityfallingblock);
}
}