fix compatibility with Artifice

This commit is contained in:
asiekierka 2015-01-28 14:00:42 +01:00
parent a6f37fe4d7
commit 6bc4db05a7

View file

@ -266,8 +266,12 @@ public class BuildCraftEnergy extends BuildCraftMod {
}
// BucketHandler ensures empty buckets fill with the correct liquid.
if (blockOil != null) {
BucketHandler.INSTANCE.buckets.put(blockOil, bucketOil);
}
if (blockFuel != null) {
BucketHandler.INSTANCE.buckets.put(blockFuel, bucketFuel);
}
MinecraftForge.EVENT_BUS.register(BucketHandler.INSTANCE);
BuildcraftRecipeRegistry.refinery.addRecipe("buildcraft:fuel", new FluidStack(fluidOil, 1), new FluidStack(
@ -369,11 +373,17 @@ public class BuildCraftEnergy extends BuildCraftMod {
@SideOnly(Side.CLIENT)
public void textureHook(TextureStitchEvent.Post event) {
if (event.map.getTextureType() == 0) {
if (buildcraftFluidOil != null) {
buildcraftFluidOil.setIcons(blockOil.getBlockTextureFromSide(1), blockOil.getBlockTextureFromSide(2));
}
if (buildcraftFluidFuel != null) {
buildcraftFluidFuel.setIcons(blockFuel.getBlockTextureFromSide(1), blockFuel.getBlockTextureFromSide(2));
}
if (buildcraftFluidRedPlasma != null) {
buildcraftFluidRedPlasma.setIcons(blockRedPlasma.getBlockTextureFromSide(1), blockRedPlasma.getBlockTextureFromSide(2));
}
}
}
public static void loadRecipes() {
CoreProxy.proxy.addCraftingRecipe(new ItemStack(engineBlock, 1, 0),