Skip to content

Commit

Permalink
Bump to 2.3.7.
Browse files Browse the repository at this point in the history
No longer use getBiomeName()

Signed-off-by: King Lemming <[email protected]>
  • Loading branch information
KingLemming committed Nov 28, 2017
1 parent f3195e3 commit dd502ba
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
10 changes: 5 additions & 5 deletions build.properties
Original file line number Diff line number Diff line change
@@ -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.+
2 changes: 1 addition & 1 deletion src/main/java/cofh/thermaldynamics/ThermalDynamics.java
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit dd502ba

Please sign in to comment.