fix buckets in stripes pipes not working with custom air blocks

This commit is contained in:
Adrian 2015-06-14 12:23:11 +02:00
parent 90537a8909
commit 2215e3299d

View file

@ -42,8 +42,7 @@ public class StripesHandlerBucket implements IStripesHandler {
public boolean handle(World world, int x, int y, int z,
ForgeDirection direction, ItemStack stack, EntityPlayer player,
IStripesActivator activator) {
Block block = world.getBlock(x, y, z);
if (block == Blocks.air) {
if (world.isAirBlock(x, y, z)) {
Block underblock = world.getBlock(x, y - 1, z);
if (((ItemBucket) stack.getItem()).tryPlaceContainedLiquid(world, x, y - 1, z)) {