mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-18 03:44:54 -04:00
fix some datafixer bugs
This commit is contained in:
parent
33f411f4b7
commit
39e7b2d937
@ -19,14 +19,13 @@ import de.bixilon.minosoft.datafixer.DataFixerUtil.asResourceLocationMap
|
||||
object BlockEntityFixer {
|
||||
private val RENAMES: Map<ResourceLocation, ResourceLocation> = mapOf(
|
||||
"Furnace" to "minecraft:furnace",
|
||||
"Furnace" to "minecraft:lit_furnace",
|
||||
"Chest" to "minecraft:chest",
|
||||
"Chest" to "minecraft:trapped_chest",
|
||||
"EnderChest" to "minecraft:ender_chest",
|
||||
"RecordPlayer" to "minecraft:jukebox",
|
||||
"Trap" to "minecraft:dispenser",
|
||||
"Dropper" to "minecraft:dropper",
|
||||
"Sign" to "minecraft:sign",
|
||||
"wall_sign" to "minecraft:sign",
|
||||
"MobSpawner" to "minecraft:mob_spawner",
|
||||
"Music" to "minecraft:noteblock",
|
||||
"Cauldron" to "minecraft:brewing_stand",
|
||||
@ -52,7 +51,8 @@ object BlockEntityFixer {
|
||||
"Airportal" to "minecraft:end_portal",
|
||||
"EndGateway" to "minecraft:end_gateway",
|
||||
"Banner" to "minecraft:shield",
|
||||
"minecraft:noteblock" to "minecraft:note_block"
|
||||
"minecraft:noteblock" to "minecraft:note_block",
|
||||
// ToDo: flower_pot
|
||||
).asResourceLocationMap()
|
||||
|
||||
|
||||
|
@ -19,7 +19,7 @@ object DataFixerUtil {
|
||||
fun Map<String, String>.asResourceLocationMap(): Map<ResourceLocation, ResourceLocation> {
|
||||
val out: MutableMap<ResourceLocation, ResourceLocation> = mutableMapOf()
|
||||
for ((key, value) in this) {
|
||||
out[ResourceLocation.getResourceLocation(key)] = ResourceLocation.getResourceLocation(value)
|
||||
out[ResourceLocation(key)] = ResourceLocation(value)
|
||||
}
|
||||
return out.toMap()
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user