Random spontaneous cleanup PR (#25131)
* Use new Subs.CVar helper Removes manual config OnValueChanged calls, removes need to remember to manually unsubscribe. This both reduces boilerplate and fixes many issues where subscriptions weren't removed on entity system shutdown. * Fix a bunch of warnings * More warning fixes * Use new DateTime serializer to get rid of ISerializationHooks in changelog code. * Get rid of some more ISerializationHooks for enums * And a little more * Apply suggestions from code review Co-authored-by: 0x6273 <0x40@keemail.me> --------- Co-authored-by: 0x6273 <0x40@keemail.me>
This commit is contained in:
committed by
GitHub
parent
d0c174388c
commit
68ce53ae17
@@ -38,7 +38,7 @@ public sealed class DoAfterSystem : SharedDoAfterSystem
|
||||
// ones that depend on the target not moving, because the cancellation of those do afters should be readily
|
||||
// predictable by clients.
|
||||
|
||||
var playerEntity = _player.LocalPlayer?.ControlledEntity;
|
||||
var playerEntity = _player.LocalEntity;
|
||||
|
||||
if (!TryComp(playerEntity, out ActiveDoAfterComponent? active))
|
||||
return;
|
||||
@@ -69,7 +69,7 @@ public sealed class DoAfterSystem : SharedDoAfterSystem
|
||||
out float progress)
|
||||
where T : DoAfterEvent
|
||||
{
|
||||
var playerEntity = _player.LocalPlayer?.ControlledEntity;
|
||||
var playerEntity = _player.LocalEntity;
|
||||
|
||||
doAfter = null;
|
||||
@event = null;
|
||||
|
||||
Reference in New Issue
Block a user