Skip to content

Commit

Permalink
Adjustment for pigiron block effect
Browse files Browse the repository at this point in the history
  • Loading branch information
Glassmaker committed Aug 11, 2014
1 parent c30304c commit ea6dee0
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -27,8 +27,10 @@ public void registerBlockIcons (IIconRegister iconRegister)
@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);
}

}

0 comments on commit ea6dee0

Please sign in to comment.