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