EngineHub / CraftBook

🔧 Machines, ICs, PLCs, and more!
https://enginehub.org/craftbook/
GNU General Public License v3.0
304 stars 163 forks source link

`nether_bricks` and `red_sand` don't get recognized as smeltable items, although they can be smelted to `cracked_nether_bricks` and `glass` #1312

Closed ANRAR4 closed 1 year ago

ANRAR4 commented 1 year ago

CraftBook Version

3.10.8

Platform Version

Paper

Confirmations

Bug Description

nether_bricks and red_sand don't get recognized as a smeltable item, although they can be smelted to cracked_nether_bricks and glass. As a result pipes can't put them into furnaces.

Expected Behavior

Pipes should be able to put nether_bricks and red_sand into funaces.

Reproduction Steps

  1. Try to input a stack of nether_bricks into an empty furnace using pipes.
  2. Try to input a stack of red_sand into an empty furnace using pipes.

Anything Else?

case NETHER_BRICKS:
  return new ItemStack(Material.CRACKED_NETHER_BRICKS);
case RED_SAND:
  return new ItemStack(Material.GLASS);

would need to be added to getSmeltedResult in https://github.com/EngineHub/CraftBook/blob/master/src/main/java/com/sk89q/craftbook/util/ItemUtil.java#L500