Fix cases where flyhack was turned into a kill.

This commit is contained in:
bmgjet 2022-06-06 19:43:59 +12:00 committed by GitHub
parent 062002f2b1
commit 95b6b3a738
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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;