From fef958c61923f80897dd408ed1e37f4ae386c197 Mon Sep 17 00:00:00 2001 From: Deathmax Date: Sun, 18 Dec 2011 10:25:32 +0800 Subject: [PATCH] Fix permissions problem with explosives --- TShockAPI/GetDataHandlers.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TShockAPI/GetDataHandlers.cs b/TShockAPI/GetDataHandlers.cs index 6c8f13d5..35780a75 100644 --- a/TShockAPI/GetDataHandlers.cs +++ b/TShockAPI/GetDataHandlers.cs @@ -654,7 +654,7 @@ namespace TShockAPI if (type == 29 || type == 28 || type == 37) //need more explosives from 1.1 { Log.Debug(string.Format("Explosive(PlyXY:{0}_{1}, Type:{2})", args.Player.TileX, args.Player.TileY, type)); - if (TShock.Config.DisableExplosives && (!args.Player.Group.HasPermission(Permissions.useexplosives) || !args.Player.Group.HasPermission(Permissions.ignoregriefdetection))) + if (TShock.Config.DisableExplosives && (!args.Player.Group.HasPermission(Permissions.useexplosives) && !args.Player.Group.HasPermission(Permissions.ignoregriefdetection))) { //Main.projectile[index].SetDefaults(0); Main.projectile[index].type = 0;