Skip to content
Permalink
Browse files

Fixed a few blocks not being smeltable

  • Loading branch information
me4502 committed Jan 12, 2020
1 parent 311bdbb commit 8ee0d0a2d4a1293e3e7852dd799b66113c79ea6a
@@ -3,7 +3,6 @@
import org.bukkit.block.Block;
import org.bukkit.block.BrewingStand;
import org.bukkit.block.Chest;
import org.bukkit.block.DoubleChest;
import org.bukkit.block.Furnace;
import org.bukkit.block.ShulkerBox;
import org.bukkit.entity.Player;
@@ -19,7 +18,6 @@
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.function.IntFunction;

/**
* Class for utilities that include adding items to a furnace based on if it is a fuel or not, and adding items to a chest. Also will include methdos for checking contents and removing.
@@ -286,6 +284,8 @@ public static boolean doesBlockHaveInventory(Block block) {
case BLACK_SHULKER_BOX:
case RED_SHULKER_BOX:
case SHULKER_BOX:
case BLAST_FURNACE:
case SMOKER:
return true;
default:
return false;
@@ -485,6 +485,8 @@ public static ItemStack getCookedResult(ItemStack item) {
return new ItemStack(Material.COOKED_RABBIT);
case CHORUS_FRUIT:
return new ItemStack(Material.POPPED_CHORUS_FRUIT);
case KELP:
return new ItemStack(Material.DRIED_KELP);
default:
return null;
}
@@ -588,6 +590,12 @@ public static ItemStack getSmeletedResult(ItemStack item) {
case GOLDEN_BOOTS:
case GOLDEN_HORSE_ARMOR:
return new ItemStack(Material.GOLD_NUGGET);
case STONE:
return new ItemStack(Material.SMOOTH_STONE);
case CHORUS_FRUIT:
return new ItemStack(Material.POPPED_CHORUS_FRUIT);
case SEA_PICKLE:
return new ItemStack(Material.LIME_DYE);
default:
if (Tag.LOGS.isTagged(item.getType())) {
return new ItemStack(Material.CHARCOAL);
@@ -700,6 +708,7 @@ public static boolean isAFuel(ItemStack item) {
case FISHING_ROD:
case BOW:
case LADDER:
case SCAFFOLDING:
return true;
default:
return Tag.ITEMS_BOATS.isTagged(item.getType())

0 comments on commit 8ee0d0a

Please sign in to comment.
You can’t perform that action at this time.