From c3f85c7347c4a5330d0e4b92b8f0f3b1b4836a59 Mon Sep 17 00:00:00 2001 From: modmuss50 Date: Sat, 20 Feb 2016 20:07:05 +0000 Subject: [PATCH] Fixes #323 --- .../techreborn/compat/minetweaker/MTGenerator.java | 13 +++++++++++++ .../compat/minetweaker/MinetweakerCompat.java | 1 + 2 files changed, 14 insertions(+) create mode 100644 src/main/java/techreborn/compat/minetweaker/MTGenerator.java diff --git a/src/main/java/techreborn/compat/minetweaker/MTGenerator.java b/src/main/java/techreborn/compat/minetweaker/MTGenerator.java new file mode 100644 index 000000000..717fb6f79 --- /dev/null +++ b/src/main/java/techreborn/compat/minetweaker/MTGenerator.java @@ -0,0 +1,13 @@ +package techreborn.compat.minetweaker; + +import minetweaker.api.liquid.ILiquidStack; +import reborncore.api.fuel.FluidPowerManager; +import stanhebben.zenscript.annotations.ZenClass; + +@ZenClass("mods.techreborn.generator") +public class MTGenerator { + public static void addFluidPower(ILiquidStack fluid, double value){ + FluidPowerManager.fluidPowerValues.put(MinetweakerCompat.toFluidStack(fluid).getFluid(), value); + } + +} diff --git a/src/main/java/techreborn/compat/minetweaker/MinetweakerCompat.java b/src/main/java/techreborn/compat/minetweaker/MinetweakerCompat.java index 341f936a7..ae260758c 100644 --- a/src/main/java/techreborn/compat/minetweaker/MinetweakerCompat.java +++ b/src/main/java/techreborn/compat/minetweaker/MinetweakerCompat.java @@ -44,6 +44,7 @@ public class MinetweakerCompat implements ICompatModule { MineTweakerAPI.registerClass(MTPlateCuttingMachine.class); MineTweakerAPI.registerClass(MTFusionReactor.class); MineTweakerAPI.registerClass(MTVacuumFreezer.class); + MineTweakerAPI.registerClass(MTGenerator.class); } @Override