Minor refactors
This commit is contained in:
parent
93a7b0aafe
commit
c7a6d044f4
5 changed files with 18 additions and 25 deletions
|
|
@ -31,7 +31,7 @@ namespace TShockAPI.Handlers.NetModules
|
|||
/// <param name="rejectPacket"></param>
|
||||
public void HandlePacket(TSPlayer player, out bool rejectPacket)
|
||||
{
|
||||
if (!CheckPermission(PowerType, player))
|
||||
if (!HasPermission(PowerType, player))
|
||||
{
|
||||
rejectPacket = true;
|
||||
return;
|
||||
|
|
@ -46,7 +46,7 @@ namespace TShockAPI.Handlers.NetModules
|
|||
/// <param name="powerType"></param>
|
||||
/// <param name="player"></param>
|
||||
/// <returns></returns>
|
||||
public static bool CheckPermission(CreativePowerTypes powerType, TSPlayer player)
|
||||
public static bool HasPermission(CreativePowerTypes powerType, TSPlayer player)
|
||||
{
|
||||
if (!PowerToPermissionMap.ContainsKey(powerType))
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue