mirror of
https://github.com/GeyserMC/Geyser.git
synced 2025-01-04 10:11:19 +01:00
Use the mapped bedrock item identifier (instead of java) to fill the record registry
This commit is contained in:
parent
9def94cba0
commit
d0bf0013ec
1 changed files with 1 additions and 1 deletions
|
@ -408,7 +408,7 @@ public class ItemRegistryPopulator {
|
||||||
} else if (javaItem.javaIdentifier().startsWith("minecraft:music_disc_")) {
|
} else if (javaItem.javaIdentifier().startsWith("minecraft:music_disc_")) {
|
||||||
// The Java record level event uses the item ID as the "key" to play the record
|
// The Java record level event uses the item ID as the "key" to play the record
|
||||||
Registries.RECORDS.register(javaItem.javaId(), SoundEvent.valueOf("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);
|
mappings.add(mapping);
|
||||||
|
|
Loading…
Reference in a new issue