Skip to content

Commit

Permalink
Add 1.16 Item Definitions. Soul Fire etc.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sn0wStorm committed Oct 31, 2020
1 parent 1aae334 commit 7c3d231
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@
<dependency>
<groupId>com.github.TheBusyBiscuit</groupId>
<artifactId>Slimefun4</artifactId>
<version>156683f318</version>
<version>RC-17</version>
<scope>provided</scope>
</dependency>
<!--<dependency>
Expand Down
7 changes: 5 additions & 2 deletions src/com/dre/brewery/utility/LegacyUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ public class LegacyUtil {

public static final Material MAGMA_BLOCK = get("MAGMA_BLOCK", "MAGMA");
public static final Material CAMPFIRE = get("CAMPFIRE");
public static final Material SOUL_CAMPFIRE = get("SOUL_CAMPFIRE");
public static final Material SOUL_FIRE = get("SOUL_FIRE");
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");
Expand Down Expand Up @@ -111,7 +113,7 @@ public static boolean isSign(Material type) {

public static boolean isFireForCauldron(Block block) {
Material type = block.getType();
return type != null && (type == Material.FIRE || type == MAGMA_BLOCK || litCampfire(block) || isLava(type));
return type != null && (type == Material.FIRE || type == SOUL_FIRE || type == MAGMA_BLOCK || litCampfire(block) || isLava(type));
}

// LAVA and STATIONARY_LAVA are merged as of 1.13
Expand All @@ -120,7 +122,7 @@ public static boolean isLava(Material type) {
}

public static boolean litCampfire(Block block) {
if (block.getType() == CAMPFIRE) {
if (block.getType() == CAMPFIRE || block.getType() == SOUL_CAMPFIRE) {
BlockData data = block.getBlockData();
if (data instanceof org.bukkit.block.data.Lightable) {
return ((org.bukkit.block.data.Lightable) data).isLit();
Expand All @@ -135,6 +137,7 @@ public static boolean isBottle(Material type) {
if (type == Material.LINGERING_POTION || type == Material.SPLASH_POTION) return true;
if (!P.use1_13) return false;
if (type == Material.EXPERIENCE_BOTTLE) return true;
if (type.name().equals("DRAGON_BREATH")) return true;
return type.name().equals("HONEY_BOTTLE");
}

Expand Down

0 comments on commit 7c3d231

Please sign in to comment.