Add air check to Flint and Steel Ref: #602

This commit is contained in:
LexManos 2013-06-17 08:28:26 -07:00
parent 949b991b96
commit dac97174ff
1 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,13 @@
--- ../src_base/minecraft/net/minecraft/item/ItemFlintAndSteel.java
+++ ../src_work/minecraft/net/minecraft/item/ItemFlintAndSteel.java
@@ -57,9 +57,7 @@
}
else
{
- int i1 = par3World.getBlockId(par4, par5, par6);
-
- if (i1 == 0)
+ if (par3World.isAirBlock(par4, par5, par6))
{
par3World.playSoundEffect((double)par4 + 0.5D, (double)par5 + 0.5D, (double)par6 + 0.5D, "fire.ignite", 1.0F, itemRand.nextFloat() * 0.4F + 0.8F);
par3World.setBlock(par4, par5, par6, Block.fire.blockID);