This commit is contained in:
Anuken 2025-11-16 23:26:51 -05:00
parent 45e744949e
commit 11542f8e17

View file

@ -68,6 +68,8 @@ public class CanvasBlock extends Block{
clipSize = Math.max(clipSize, size * 8 - padding);
previewPixmap = new Pixmap(canvasSize, canvasSize);
if(!Mathf.isPowerOfTwo(palette.length)) throw new RuntimeException("Non power-of-two palettes for canvas blocks are not supported.");
}
@Override