Skip to content

Commit

Permalink
Fix an error in the client's verb system
Browse files Browse the repository at this point in the history
  • Loading branch information
wixoaGit committed Feb 12, 2024
1 parent ba45f8a commit 5c07e31
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion OpenDreamClient/ClientVerbSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,10 @@ public IEnumerable<VerbInfo> GetAllVerbs() {
ClientObjectReference? ourMob = null;
sbyte? seeInvisibility = null;
if (_playerManager.LocalEntity != null) {
_sightQuery.TryGetComponent(_playerManager.LocalEntity.Value, out var mobSight);

ourMob = new ClientObjectReference(_entityManager.GetNetEntity(_playerManager.LocalEntity.Value));
seeInvisibility = _sightQuery.GetComponent(_playerManager.LocalEntity.Value).SeeInvisibility;
seeInvisibility = mobSight?.SeeInvisibility;
}

// First, the verbs attached to our client
Expand Down

0 comments on commit 5c07e31

Please sign in to comment.