Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-18 12:30:06 +01:00
Properly validate boss bar progress
Dieser Commit ist enthalten in:
Ursprung
420b983d59
Commit
767f028054
@ -119,6 +119,7 @@ public class CraftBossBar implements BossBar {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void setProgress(double progress) {
|
public void setProgress(double progress) {
|
||||||
|
Preconditions.checkArgument(progress >= 0.0 && progress <= 1.0, "Progress must be between 0.0 and 1.0 (%s)", progress);
|
||||||
handle.setProgress((float) progress);
|
handle.setProgress((float) progress);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren