Skip to content

Commit

Permalink
fix recipe: no item should not be compiled to an item placeholder
Browse files Browse the repository at this point in the history
  • Loading branch information
12rcu committed Jan 18, 2024
1 parent 240b1bb commit 46ad0f4
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ class CraftingRecipe: MonsteraFile {
}

private fun compilePattern(t: String): String {
if(t.isEmpty() || t == " ")
return " "
if(unsafe.keyPattern.containsKey(t))
return unsafe.keyPattern[t]!!

Expand Down

0 comments on commit 46ad0f4

Please sign in to comment.