mirror of
https://github.com/GeyserMC/MCProtocolLib.git
synced 2024-12-04 12:51:09 -05:00
Add workaround for -1 MobType.
This commit is contained in:
parent
a5bc122b93
commit
aae3a9d276
1 changed files with 5 additions and 4 deletions
|
@ -1206,14 +1206,15 @@ public class MagicValues {
|
|||
register(SoundCategory.AMBIENT, 8);
|
||||
register(SoundCategory.VOICE, 9);
|
||||
|
||||
// Handle some protocol version translators that may send -1 for untranslatable sound IDs.
|
||||
// Choice of sound is based on what (I think?) vanilla would default to.
|
||||
register(BuiltinSound.ENTITY_ITEM_PICKUP, -1);
|
||||
|
||||
for(BuiltinSound sound : BuiltinSound.values()) {
|
||||
register(sound, sound.ordinal());
|
||||
register(sound, sound.getName());
|
||||
}
|
||||
|
||||
// Handle some protocol version translators that may send -1 for untranslatable IDs.
|
||||
// Choics are based on what (I think?) vanilla would default to.
|
||||
register(MobType.PIG, -1);
|
||||
register(BuiltinSound.ENTITY_ITEM_PICKUP, -1);
|
||||
}
|
||||
|
||||
private MagicValues() {
|
||||
|
|
Loading…
Reference in a new issue