Skip to content

Commit

Permalink
print camera warning only if override is active
Browse files Browse the repository at this point in the history
  • Loading branch information
chirpxiv committed Jun 26, 2023
1 parent 7eaf1a0 commit e3bab6b
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions Ktisis/Camera/CameraService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,10 @@ internal static class CameraService {
var active = Services.Camera->GetActiveCamera();

var camera = GetCameraByAddress((nint)active);
if (camera == null) {
if (camera == null && Override != null) {
PluginLog.Warning("Lost track of active camera! Attempting to reset.");
if (Override != null) {
Reset();
camera = GetCameraByAddress((nint)Services.Camera->Camera);
}
Reset();
camera = GetCameraByAddress((nint)Services.Camera->Camera);
}

return camera;
Expand Down

0 comments on commit e3bab6b

Please sign in to comment.