EntityEffectConditions changed to be inclusive of min/max (#36289)
* soo hungry going back for more lipolicide * too much lipolicide..... * fixes * it moved * typo --------- Co-authored-by: iaada <iaada@users.noreply.github.com>
This commit is contained in:
@@ -133,7 +133,7 @@ public sealed class EntityEffectSystem : EntitySystem
|
||||
args.Result = false;
|
||||
if (TryComp(args.Args.TargetEntity, out TemperatureComponent? temp))
|
||||
{
|
||||
if (temp.CurrentTemperature > args.Condition.Min && temp.CurrentTemperature < args.Condition.Max)
|
||||
if (temp.CurrentTemperature >= args.Condition.Min && temp.CurrentTemperature <= args.Condition.Max)
|
||||
args.Result = true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user