Fixed #6865 / Fixed headless canvas crash
This commit is contained in:
@@ -56,6 +56,8 @@ public class CanvasBlock extends Block{
|
||||
public byte[] data = new byte[Mathf.ceil(canvasSize * canvasSize * bitsPerPixel / 8f)];
|
||||
|
||||
public void updateTexture(){
|
||||
if(headless) return;
|
||||
|
||||
Pixmap pix = makePixmap();
|
||||
if(texture != null){
|
||||
texture.draw(pix);
|
||||
|
||||
Reference in New Issue
Block a user