From 39572d115ccd01783870e8f01a57150304951411 Mon Sep 17 00:00:00 2001 From: UnknownShadow200 Date: Fri, 9 Feb 2018 09:42:12 +1100 Subject: [PATCH] Fix /resizelvl erroring stuffing up server. (bots/portals/goto/draw commands all start failing) --- MCGalaxy/Commands/World/CmdResizeLvl.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/MCGalaxy/Commands/World/CmdResizeLvl.cs b/MCGalaxy/Commands/World/CmdResizeLvl.cs index 84b7df3bd..ada26df57 100644 --- a/MCGalaxy/Commands/World/CmdResizeLvl.cs +++ b/MCGalaxy/Commands/World/CmdResizeLvl.cs @@ -56,6 +56,7 @@ namespace MCGalaxy.Commands.World { } Level newLvl = ResizeLevel(lvl, x, y, z); + if (newLvl == null) { Player.Message(p, "&cError resizing map."); return false; } LevelActions.Replace(lvl, newLvl); return true; }