fix loading in 1.15

This commit is contained in:
Bixilon 2021-04-24 21:48:05 +02:00
parent 1f3624bbf0
commit 360b3bd47a
No known key found for this signature in database
GPG Key ID: 5CAD791931B09AC4
2 changed files with 3 additions and 2 deletions

View File

@ -47,7 +47,8 @@ object KeyBindingsNames {
val CLOSE_CHAT = ResourceLocation("minosoft:close_chat") val CLOSE_CHAT = ResourceLocation("minosoft:close_chat")
val SELECT_HOTBAR_SLOTS = arrayOf(ResourceLocation("minosoft:select_hotbar_slot_1"), val SELECT_HOTBAR_SLOTS = arrayOf(
ResourceLocation("minosoft:select_hotbar_slot_1"),
ResourceLocation("minosoft:select_hotbar_slot_2"), ResourceLocation("minosoft:select_hotbar_slot_2"),
ResourceLocation("minosoft:select_hotbar_slot_3"), ResourceLocation("minosoft:select_hotbar_slot_3"),
ResourceLocation("minosoft:select_hotbar_slot_4"), ResourceLocation("minosoft:select_hotbar_slot_4"),

View File

@ -62,7 +62,7 @@ data class EntityType(
data["attributes"]?.asJsonObject?.let { data["attributes"]?.asJsonObject?.let {
for ((attributeResourceLocation, value) in it.entrySet()) { for ((attributeResourceLocation, value) in it.entrySet()) {
attributes[ResourceLocation.getPathResourceLocation(attributeResourceLocation).fix()] = value.asFloat attributes[ResourceLocation.getResourceLocation(attributeResourceLocation).fix()] = value.asFloat
} }
} }