mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-13 17:37:58 -04:00
recipe registry: don't require id
This makes it more fault tolerant, because mappings for 1.12.2 recipes don't even exist yet
This commit is contained in:
parent
44bac3d3a7
commit
81d58dab73
@ -37,7 +37,7 @@ class RecipeRegistry(
|
||||
override fun get(any: Any?): Recipe? {
|
||||
return when (any) {
|
||||
null -> null
|
||||
is Number -> get(any.toInt())
|
||||
is Number -> getOrNull(any.toInt())
|
||||
is ResourceLocation -> resourceLocationRecipeMap[any]
|
||||
is String -> get(any.toResourceLocation())
|
||||
is Identified -> get(any.identifier)
|
||||
|
Loading…
x
Reference in New Issue
Block a user