From dd502ba6a2b136da32a77c1afc7aa3df9e8f3150 Mon Sep 17 00:00:00 2001 From: King Lemming Date: Tue, 28 Nov 2017 17:41:56 -0500 Subject: [PATCH] Bump to 2.3.7. No longer use getBiomeName() Signed-off-by: King Lemming --- build.properties | 10 +++++----- .../java/cofh/thermaldynamics/ThermalDynamics.java | 2 +- .../duct/fluid/DuctUnitFluidTemperate.java | 5 ++++- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/build.properties b/build.properties index 9178b20..fa530eb 100644 --- a/build.properties +++ b/build.properties @@ -1,15 +1,15 @@ # Minecraft Version -mc_version=1.12 -forge_version=14.21.1.2443 +mc_version=1.12.2 +forge_version=14.23.1.2555 mappings=snapshot_20171003 # Mod Version -mod_version=2.3.6 +mod_version=2.3.7 # Dependencies rf_version=2.0.1.+ -cofh_core_version=4.3.6.+ -tf_version=2.3.6.+ +cofh_core_version=4.3.7.+ +tf_version=2.3.7.+ ccl_version=3.1.3.+ jei_version=4.7.0.+ diff --git a/src/main/java/cofh/thermaldynamics/ThermalDynamics.java b/src/main/java/cofh/thermaldynamics/ThermalDynamics.java index 48b5fdd..6233fe7 100644 --- a/src/main/java/cofh/thermaldynamics/ThermalDynamics.java +++ b/src/main/java/cofh/thermaldynamics/ThermalDynamics.java @@ -35,7 +35,7 @@ public class ThermalDynamics { public static final String MOD_ID = "thermaldynamics"; public static final String MOD_NAME = "Thermal Dynamics"; - public static final String VERSION = "2.3.6"; + public static final String VERSION = "2.3.7"; public static final String VERSION_MAX = "2.4.0"; public static final String VERSION_GROUP = "required-after:" + MOD_ID + "@[" + VERSION + "," + VERSION_MAX + ");"; public static final String UPDATE_URL = "https://raw.github.com/cofh/version/master/" + MOD_ID + "_update.json"; diff --git a/src/main/java/cofh/thermaldynamics/duct/fluid/DuctUnitFluidTemperate.java b/src/main/java/cofh/thermaldynamics/duct/fluid/DuctUnitFluidTemperate.java index 7db5be7..98a3385 100644 --- a/src/main/java/cofh/thermaldynamics/duct/fluid/DuctUnitFluidTemperate.java +++ b/src/main/java/cofh/thermaldynamics/duct/fluid/DuctUnitFluidTemperate.java @@ -13,10 +13,13 @@ import net.minecraft.block.Block; import net.minecraft.block.BlockLiquid; import net.minecraft.block.state.IBlockState; +import net.minecraft.init.Biomes; import net.minecraft.init.Blocks; import net.minecraft.item.ItemStack; import net.minecraft.nbt.NBTTagCompound; import net.minecraft.util.EnumParticleTypes; +import net.minecraftforge.common.BiomeDictionary; +import net.minecraftforge.common.BiomeDictionary.Type; import net.minecraftforge.fluids.*; import net.minecraftforge.fml.relauncher.Side; import net.minecraftforge.fml.relauncher.SideOnly; @@ -182,7 +185,7 @@ public void breakAndSpill(FluidStack fluidStack) { } else if ("lava".equals(fluid.getName())) { block = Blocks.FLOWING_LAVA; } - if (!"water".equals(fluid.getName()) || !world().getBiome(pos()).getBiomeName().toLowerCase(Locale.US).equals("hell")) { + if (!"water".equals(fluid.getName()) || !BiomeDictionary.hasType(world().getBiome(pos()), Type.NETHER)) { if (block == Blocks.FLOWING_WATER || block == Blocks.FLOWING_LAVA) { IBlockState levelState = block.getDefaultState().withProperty(BlockLiquid.LEVEL, fullBucket ? 0 : (world().rand.nextInt(6) + 1)); world().setBlockState(pos(), levelState, 3);