Update casing & remove using static
- god_power -> godPower - Remove using static on GameContent.CreativePowers, instead fully qualify the nested class.
This commit is contained in:
parent
3b58b0ad16
commit
4a28d6779f
1 changed files with 2 additions and 3 deletions
|
|
@ -38,7 +38,6 @@ using TShockAPI.Localization;
|
|||
using System.Text.RegularExpressions;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.GameContent.Creative;
|
||||
using static Terraria.GameContent.Creative.CreativePowers;
|
||||
|
||||
namespace TShockAPI
|
||||
{
|
||||
|
|
@ -6447,9 +6446,9 @@ namespace TShockAPI
|
|||
|
||||
playerToGod.GodMode = !playerToGod.GodMode;
|
||||
|
||||
var god_power = CreativePowerManager.Instance.GetPower<GodmodePower>();
|
||||
var godPower = CreativePowerManager.Instance.GetPower<CreativePowers.GodmodePower>();
|
||||
|
||||
god_power.SetEnabledState(playerToGod.Index, playerToGod.GodMode);
|
||||
godPower.SetEnabledState(playerToGod.Index, playerToGod.GodMode);
|
||||
|
||||
if (playerToGod == args.Player)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue