From 477d3439f3db7ab38070aefd0829964d86621edc Mon Sep 17 00:00:00 2001 From: Integer Limit <103940576+IntegerLimit@users.noreply.github.com> Date: Tue, 9 Jul 2024 10:25:00 +1000 Subject: [PATCH] Fix Crash with GT 2.8.9 --- .../nomilabs/gregtech/material/LabsProperties.java | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/main/java/com/nomiceu/nomilabs/gregtech/material/LabsProperties.java b/src/main/java/com/nomiceu/nomilabs/gregtech/material/LabsProperties.java index a498051f..10a0d290 100644 --- a/src/main/java/com/nomiceu/nomilabs/gregtech/material/LabsProperties.java +++ b/src/main/java/com/nomiceu/nomilabs/gregtech/material/LabsProperties.java @@ -4,6 +4,8 @@ import static gregtech.api.unification.material.Materials.*; import static gregtech.api.unification.material.info.MaterialFlags.*; +import gregtech.api.fluids.FluidBuilder; +import gregtech.api.fluids.store.FluidStorageKeys; import gregtech.api.unification.material.info.MaterialIconSet; import gregtech.api.unification.material.properties.FluidProperty; import gregtech.api.unification.material.properties.GemProperty; @@ -23,12 +25,12 @@ public static void propertyChanges() { Einsteinium.setProperty(PropertyKey.INGOT, new IngotProperty()); Graphite.setProperty(PropertyKey.INGOT, new IngotProperty()); - Neptunium.setProperty(PropertyKey.FLUID, new FluidProperty()); - Curium.setProperty(PropertyKey.FLUID, new FluidProperty()); - Berkelium.setProperty(PropertyKey.FLUID, new FluidProperty()); - Californium.setProperty(PropertyKey.FLUID, new FluidProperty()); - Einsteinium.setProperty(PropertyKey.FLUID, new FluidProperty()); - NetherStar.setProperty(PropertyKey.FLUID, new FluidProperty()); + Neptunium.setProperty(PropertyKey.FLUID, new FluidProperty(FluidStorageKeys.LIQUID, new FluidBuilder())); + Curium.setProperty(PropertyKey.FLUID, new FluidProperty(FluidStorageKeys.LIQUID, new FluidBuilder())); + Berkelium.setProperty(PropertyKey.FLUID, new FluidProperty(FluidStorageKeys.LIQUID, new FluidBuilder())); + Californium.setProperty(PropertyKey.FLUID, new FluidProperty(FluidStorageKeys.LIQUID, new FluidBuilder())); + Einsteinium.setProperty(PropertyKey.FLUID, new FluidProperty(FluidStorageKeys.LIQUID, new FluidBuilder())); + NetherStar.setProperty(PropertyKey.FLUID, new FluidProperty(FluidStorageKeys.LIQUID, new FluidBuilder())); // Cinnabar Got its Gems Removed for future Thaumcraft Compat. // We don't have Thaumcraft. Add it back. (Part 2)