From 0815caf553304a4776d881e13da4107548f7bd2e Mon Sep 17 00:00:00 2001 From: Sn0wStorm Date: Wed, 31 Oct 2018 21:00:21 +0100 Subject: [PATCH] Allow Magma Block as Heat Source implements #166 --- src/com/dre/brewery/LegacyUtil.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/com/dre/brewery/LegacyUtil.java b/src/com/dre/brewery/LegacyUtil.java index 0466580..8334a9d 100644 --- a/src/com/dre/brewery/LegacyUtil.java +++ b/src/com/dre/brewery/LegacyUtil.java @@ -52,6 +52,7 @@ public class LegacyUtil { FENCES = fences; } + public static final Material MAGMA = get("MAGMA_BLOCK", "MAGMA"); public static final Material CLOCK = get("CLOCK", "WATCH"); public static final Material OAK_STAIRS = get("OAK_STAIRS", "WOOD_STAIRS"); public static final Material SPRUCE_STAIRS = get("SPRUCE_STAIRS", "SPRUCE_WOOD_STAIRS"); @@ -102,7 +103,7 @@ public class LegacyUtil { // LAVA and STATIONARY_LAVA are merged as of 1.13 public static boolean isLava(Material type) { - return type == Material.LAVA || (!P.use1_13 && type == STATIONARY_LAVA); + return type == Material.LAVA || (!P.use1_13 && type == STATIONARY_LAVA) || (MAGMA != null && type == MAGMA); } public static boolean areStairsInverted(Block block) {