Fixed major fluid recipe comparison bug

This commit is contained in:
Calclavia 2014-02-25 18:48:33 +08:00
parent 988e85bf42
commit 2712e54a8f
2 changed files with 11 additions and 2 deletions

View file

@ -42,6 +42,15 @@ public class BlockCastingMold extends BlockTile
return false; return false;
} }
@Override
public void onBlockAdded(World world, int x, int y, int z)
{
TileEntity tile = world.getBlockTileEntity(x, y, z);
if (tile != null)
tile.updateEntity();
}
@Override @Override
public void onNeighborBlockChange(World world, int x, int y, int z, int blockID) public void onNeighborBlockChange(World world, int x, int y, int z, int blockID)
{ {
@ -94,7 +103,7 @@ public class BlockCastingMold extends BlockTile
InventoryUtility.dropItemStack(world, new Vector3(player), output, 0); InventoryUtility.dropItemStack(world, new Vector3(player), output, 0);
tile.setInventorySlotContents(0, null); tile.setInventorySlotContents(0, null);
} }
return true; return true;
} }

View file

@ -159,7 +159,7 @@ public abstract class RecipeResource
if (obj instanceof FluidStackResource) if (obj instanceof FluidStackResource)
return equals(((FluidStackResource) obj).fluidStack); return equals(((FluidStackResource) obj).fluidStack);
return (obj instanceof FluidStack) ? ((FluidStack) obj).equals(obj) : false; return (obj instanceof FluidStack) ? ((FluidStack) obj).equals(fluidStack) : false;
} }
@Override @Override