Mirror von
https://github.com/ViaVersion/ViaBackwards.git
synchronisiert 2024-09-07 21:32:52 +02: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) {
|
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