geforkt von Mirrors/Paper
#1353: Fix Structure#place not working as documented with 0 palette
By: Jishuna <joshl5324@gmail.com>
Dieser Commit ist enthalten in:
Ursprung
c094bcbac2
Commit
9c58e790bc
@ -14,7 +14,7 @@
|
||||
if (i == 0) {
|
||||
throw new IllegalStateException("No palettes");
|
||||
+ // CraftBukkit start
|
||||
+ } else if (this.palette > 0) {
|
||||
+ } else if (this.palette >= 0) {
|
||||
+ if (this.palette >= i) {
|
||||
+ throw new IllegalArgumentException("Palette index out of bounds. Got " + this.palette + " where there are only " + i + " palettes available.");
|
||||
+ }
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren