Mirror von
https://github.com/ViaVersion/ViaBackwards.git
synchronisiert 2024-12-26 16:12:43 +01:00
fix possible array out of bounds
Dieser Commit ist enthalten in:
Ursprung
1f3ed39eb6
Commit
6f20b874c5
@ -39,6 +39,6 @@ public class SoundMapping {
|
||||
}
|
||||
|
||||
public static int getOldSound(int newSound) {
|
||||
return newSound >= sounds.length ? -1 : sounds[newSound];
|
||||
return newSound < 0 || newSound >= sounds.length ? -1 : sounds[newSound];
|
||||
}
|
||||
}
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren