Fix cases where flyhack was turned into a kill.
This commit is contained in:
parent
062002f2b1
commit
95b6b3a738
|
@ -248,7 +248,7 @@ namespace Oxide.Plugins
|
|||
if (player != null)
|
||||
{
|
||||
BaseEntity be = player.GetParentEntity();
|
||||
if (be != null && be is CargoShip) { player.Hurt(30f); }
|
||||
if (be != null && be is CargoShip && type == AntiHackType.InsideTerrain) { player.Hurt(5f); }
|
||||
return false;
|
||||
}
|
||||
return null;
|
||||
|
|
Loading…
Reference in New Issue