added a no clip override in the config file, this hopefully will allow you to stop all that dumb teleporting when you accidentally no clip.
This commit is contained in:
parent
2a59de5293
commit
95946ba060
2 changed files with 3 additions and 1 deletions
|
|
@ -203,6 +203,8 @@ namespace TShockAPI
|
|||
|
||||
[Description("Ignores checking to see if player 'can' kill a projectile")] public bool IgnoreProjKill = false;
|
||||
|
||||
[Description("Ignores all no clip checks for players")] public bool IgnoreNoClip = false;
|
||||
|
||||
public static ConfigFile Read(string path)
|
||||
{
|
||||
if (!File.Exists(path))
|
||||
|
|
|
|||
|
|
@ -1437,7 +1437,7 @@ namespace TShockAPI
|
|||
}
|
||||
|
||||
if (!args.Player.Group.HasPermission(Permissions.ignorenoclipdetection) &&
|
||||
Collision.SolidCollision(pos, args.TPlayer.width, args.TPlayer.height))
|
||||
Collision.SolidCollision(pos, args.TPlayer.width, args.TPlayer.height) && !TShock.Config.IgnoreNoClip)
|
||||
{
|
||||
int lastTileX = (int) (args.Player.LastNetPosition.X/16f);
|
||||
int lastTileY = (int) (args.Player.LastNetPosition.Y/16f);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue