Do not crash when reading null planets

This commit is contained in:
Anuken
2023-06-17 20:39:52 -04:00
parent 70516752fc
commit 7e23272668
2 changed files with 4 additions and 1 deletions

View File

@@ -106,7 +106,7 @@ public enum EditorTool{
if(tile == null) return;
if(editor.drawBlock.isMultiblock()){
if(editor.drawBlock.isMultiblock() && (mode == 0 || mode == -1)){
//don't fill multiblocks, thanks
pencil.touched(x, y);
return;