From 321d8d1f2be3c7b3bfe28af93b1ac338ee882cf3 Mon Sep 17 00:00:00 2001 From: viliml Date: Sun, 4 Aug 2013 22:23:23 +0200 Subject: [PATCH] Update BuildCraftEnergy.java Fixes https://github.com/BuildCraft/BuildCraft/issues/1091. --- common/buildcraft/BuildCraftEnergy.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/common/buildcraft/BuildCraftEnergy.java b/common/buildcraft/BuildCraftEnergy.java index 04a6c5fb..bc6e3b6f 100644 --- a/common/buildcraft/BuildCraftEnergy.java +++ b/common/buildcraft/BuildCraftEnergy.java @@ -180,7 +180,6 @@ public class BuildCraftEnergy { } // Buckets - MinecraftForge.EVENT_BUS.register(BucketHandler.INSTANCE); if (blockOil != null && bucketOilId > 0) { bucketOil = new ItemBucketBuildcraft(bucketOilId, blockOil.blockID); @@ -195,6 +194,10 @@ public class BuildCraftEnergy { LanguageRegistry.addName(bucketFuel, "Fuel Bucket"); FluidContainerRegistry.registerFluidContainer(FluidRegistry.getFluidStack("fuel", FluidContainerRegistry.BUCKET_VOLUME), new ItemStack(bucketFuel), new ItemStack(Item.bucketEmpty)); } + + BucketHandler.INSTANCE.buckets.put(blockOil, bucketOil); + BucketHandler.INSTANCE.buckets.put(blockFuel, bucketFuel); + MinecraftForge.EVENT_BUS.register(BucketHandler.INSTANCE); RefineryRecipes.addRecipe(new FluidStack(fluidOil, 1), new FluidStack(fluidFuel, 1), 12, 1);