From 93737060b60f1f6ea7af2411c74d588ebb7e035f Mon Sep 17 00:00:00 2001 From: MarioE Date: Sat, 7 Dec 2013 10:30:38 -0500 Subject: [PATCH] Yeah maybe it'd be nice if it built --- TShockAPI/Commands.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/TShockAPI/Commands.cs b/TShockAPI/Commands.cs index 151abcc5..d8d5002d 100755 --- a/TShockAPI/Commands.cs +++ b/TShockAPI/Commands.cs @@ -4228,13 +4228,13 @@ namespace TShockAPI { int.TryParse(args.Parameters[0], out itemAmount); var prefixIds = TShock.Utils.GetPrefixByIdOrName(args.Parameters[1]); - if (item.accessory && prefixIds.Contains(42)) + if (items[0].accessory && prefixIds.Contains(42)) { prefixIds.Remove(42); prefixIds.Remove(76); prefixIds.Add(76); } - else if (!item.accessory && prefixIds.Contains(42)) + else if (!items[0].accessory && prefixIds.Contains(42)) prefixIds.Remove(76); if (prefixIds.Count == 1) prefix = prefixIds[0];