mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-13 17:04:24 +00:00
Adjustment for pigiron block effect
This commit is contained in:
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);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user