From 7be923f6408646f834df030102f15edce74486e3 Mon Sep 17 00:00:00 2001 From: MarioE Date: Thu, 10 Oct 2013 19:16:19 -0400 Subject: [PATCH] Send better wall of flesh error messages --- TShockAPI/Commands.cs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/TShockAPI/Commands.cs b/TShockAPI/Commands.cs index 47e2d1a8..46290926 100755 --- a/TShockAPI/Commands.cs +++ b/TShockAPI/Commands.cs @@ -1770,9 +1770,14 @@ namespace TShockAPI return; case "wof": case "wall of flesh": - if (Main.wof >= 0 || (args.Player.Y / 16f < (Main.maxTilesY - 205))) + if (Main.wof >= 0) { - args.Player.SendErrorMessage("Can't spawn the Wall of Flesh!"); + args.Player.SendErrorMessage("There is already a Wall of Flesh!"); + return; + } + if (args.Player.Y / 16f < Main.maxTilesY - 205) + { + args.Player.SendErrorMessage("You must spawn the Wall of Flesh in hell!"); return; } NPC.SpawnWOF(new Vector2(args.Player.X, args.Player.Y));