fix: tool durability not decreasing; smelting recipe for quartz had bad value

This commit is contained in:
minjaesong
2024-02-11 02:09:52 +09:00
parent 87081b0a33
commit 273e56cb35
8 changed files with 12 additions and 15 deletions

View File

@@ -249,6 +249,10 @@ class FixtureSmelterBasic : FixtureBase, CraftingStation {
if (progress >= CALORIES_PER_ROASTING) {
val smeltingProduct = oreItemProp.smeltingProduct!!
// check if the item even exists
if (ItemCodex[smeltingProduct] == null) throw NullPointerException("No item prop for $smeltingProduct")
if (productItem == null)
productItem = InventoryPair(smeltingProduct, 1L)
else