diff --git a/nms-patches/net/minecraft/world/level/levelgen/structure/templatesystem/DefinedStructureInfo.patch b/nms-patches/net/minecraft/world/level/levelgen/structure/templatesystem/DefinedStructureInfo.patch index 24c76defd..e9a703f1e 100644 --- a/nms-patches/net/minecraft/world/level/levelgen/structure/templatesystem/DefinedStructureInfo.patch +++ b/nms-patches/net/minecraft/world/level/levelgen/structure/templatesystem/DefinedStructureInfo.patch @@ -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."); + }