Update GetDataHandlers.cs

Correct the mistakes caused by my carelessness.
This commit is contained in:
hufang360 2022-10-09 01:35:45 +08:00 committed by GitHub
parent 66379a4a17
commit 678f18b827
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3840,7 +3840,7 @@ namespace TShockAPI
if (!args.Player.HasPermission(Permissions.magicconch)) 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)"); Fail("the Shellphone (Ocean)");
} }
@ -3863,7 +3863,7 @@ namespace TShockAPI
if (!args.Player.HasPermission(Permissions.demonconch)) 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)"); Fail("the Shellphone (Underworld)");
} }