[HOTFIX] Fix status effect removal from entity effects and buckets not being draggable (#41168)
just do less work it's that easy! Co-authored-by: Princess Cheeseballs <66055347+Pronana@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
a8aa3c1840
commit
222aaa9b59
@@ -306,7 +306,7 @@ public sealed partial class StatusEffectsSystem
|
||||
/// <returns> True if duration was edited successfully, false otherwise.</returns>
|
||||
public bool TryRemoveTime(EntityUid uid, EntProtoId effectProto, TimeSpan? time)
|
||||
{
|
||||
return time == null ? TryRemoveStatusEffect(uid, effectProto) : TryAddTime(uid, effectProto, time.Value);
|
||||
return time == null ? TryRemoveStatusEffect(uid, effectProto) : TryAddTime(uid, effectProto, - time.Value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user