mirror of
https://github.com/DeltaV-Station/Delta-v.git
synced 2026-09-29 23:57:29 +00:00
[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
Vanessa
co-authored by
Princess Cheeseballs
parent
8c80382feb
commit
f5686383ba
@@ -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