Use the mapped bedrock item identifier (instead of java) to fill the record registry

This commit is contained in:
Konicai 2023-05-11 20:08:43 -04:00
parent 9def94cba0
commit d0bf0013ec
No known key found for this signature in database
GPG key ID: 710D09287708C823

View file

@ -408,7 +408,7 @@ public class ItemRegistryPopulator {
} else if (javaItem.javaIdentifier().startsWith("minecraft:music_disc_")) {
// The Java record level event uses the item ID as the "key" to play the record
Registries.RECORDS.register(javaItem.javaId(), SoundEvent.valueOf("RECORD_" +
javaItem.javaIdentifier().replace("minecraft:music_disc_", "").toUpperCase(Locale.ENGLISH)));
mapping.getBedrockIdentifier().replace("minecraft:music_disc_", "").toUpperCase(Locale.ENGLISH)));
}
mappings.add(mapping);