Update BuildCraftEnergy.java

Fixes https://github.com/BuildCraft/BuildCraft/issues/1091.
This commit is contained in:
viliml 2013-08-04 22:23:23 +02:00
parent a5be4d79c4
commit 321d8d1f2b

View file

@ -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);
@ -196,6 +195,10 @@ public class BuildCraftEnergy {
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);
// Iron Engine Fuels