From 678f18b8271e90125ba1a0c1533346c4d960f043 Mon Sep 17 00:00:00 2001 From: hufang360 Date: Sun, 9 Oct 2022 01:35:45 +0800 Subject: [PATCH] Update GetDataHandlers.cs Correct the mistakes caused by my carelessness. --- TShockAPI/GetDataHandlers.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/TShockAPI/GetDataHandlers.cs b/TShockAPI/GetDataHandlers.cs index 694c9b23..bf594724 100644 --- a/TShockAPI/GetDataHandlers.cs +++ b/TShockAPI/GetDataHandlers.cs @@ -3840,7 +3840,7 @@ namespace TShockAPI if (!args.Player.HasPermission(Permissions.magicconch)) { - if (args.Player.ItemInHand.type == ItemID.ShellphoneOcean || args.Player.SelectedItem.type != ItemID.ShellphoneOcean) + if (args.Player.ItemInHand.type == ItemID.ShellphoneOcean || args.Player.SelectedItem.type == ItemID.ShellphoneOcean) { Fail("the Shellphone (Ocean)"); } @@ -3863,7 +3863,7 @@ namespace TShockAPI if (!args.Player.HasPermission(Permissions.demonconch)) { - if (args.Player.ItemInHand.type == ItemID.ShellphoneHell || args.Player.SelectedItem.type != ItemID.ShellphoneHell) + if (args.Player.ItemInHand.type == ItemID.ShellphoneHell || args.Player.SelectedItem.type == ItemID.ShellphoneHell) { Fail("the Shellphone (Underworld)"); }