Adjustment for pigiron block effect

This commit is contained in:
Glassmaker committed 2014-08-11 17:44:15 +03:00
1 parent c30304cd92
commit ea6dee0c49
1 file changed
+3 -1
@@ -27,8 +27,10 @@ public class PigIronMoltenBlock extends TConstructFluid
@Override
public void onEntityCollidedWithBlock (World world, int x, int y, int z, Entity entity)
{
if (!world.isRemote && entity != null)
if (!world.isRemote && entity != null && !entity.isWet())
entity.setFire(40);
if (!entity.isWet() || world.rand.nextInt(100) > 73)
world.playSoundAtEntity(entity, "random.fizz", 0.7F, 1.6F + (world.rand.nextFloat() - world.rand.nextFloat()) * 0.4F);
}
}