mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-14 20:44:05 +09:00
fix: tool durability not decreasing; smelting recipe for quartz had bad value
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user