Fix incorrect conditions on black pepper's forced cough (#38783)

no one to blame but myself

Co-authored-by: iaada <iaada@users.noreply.github.com>
This commit is contained in:
āda
2025-07-05 19:27:08 -05:00
committed by GitHub
parent e042b3acab
commit 40f6fac8e0

View File

@@ -19,7 +19,7 @@ public sealed partial class Internals : EntityEffectCondition
if (!args.EntityManager.TryGetComponent(args.TargetEntity, out InternalsComponent? internalsComp)) if (!args.EntityManager.TryGetComponent(args.TargetEntity, out InternalsComponent? internalsComp))
return !UsingInternals; // They have no internals to wear. return !UsingInternals; // They have no internals to wear.
var internalsState = internalsComp.GasTankEntity == null; var internalsState = internalsComp.GasTankEntity != null; // If gas tank is not null, they are wearing internals
return UsingInternals == internalsState; return UsingInternals == internalsState;
} }