diff --git a/OpenDreamClient/Rendering/DreamViewOverlay.cs b/OpenDreamClient/Rendering/DreamViewOverlay.cs index 11f16f38ca..435615ffdc 100644 --- a/OpenDreamClient/Rendering/DreamViewOverlay.cs +++ b/OpenDreamClient/Rendering/DreamViewOverlay.cs @@ -795,6 +795,8 @@ private Texture ProcessKeepTogether(DrawingHandleWorld handle, RendererMetaData } public Texture GetTextureFromMaptext(string maptext, int width, int height, DrawingHandleWorld handle) { + if(width == 0) width = 32; + if(height == 0) height = 32; IRenderTexture tempTexture = _renderTargetPool.Rent(new Vector2i(width, height)); handle.RenderInRenderTarget(tempTexture, () => { handle.SetTransform(CreateRenderTargetFlipMatrix(tempTexture.Size, Vector2.Zero));