Replace WorldHelper functions with their implementation in World.

This commit is contained in:
Bernhard Bonigl committed 2014-08-04 20:25:03 +02:00
1 parent ba254403c9
commit 02cf9e0121
1 file changed
+3 -3
+3 -3
View File
@@ -15,17 +15,17 @@ public class WorldHelper
public static boolean setBlockToAir (World w, int x, int y, int z)
{
return w.setBlock(x, y, z, Blocks.air, 0, 0);
return w.setBlockToAir(x, y, z);
}
public static boolean isAirBlock (IBlockAccess access, int x, int y, int z)
{
return ComparisonHelper.areEquivalent(access.getBlock(x, y, z), Blocks.air);
return access.getBlock(x,y,z).isAir(access, x,y,z);
}
public static boolean isAirBlock (World access, int x, int y, int z)
{
return ComparisonHelper.areEquivalent(access.getBlock(x, y, z), Blocks.air);
return access.isAirBlock(x,y,z);
}
}