]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix research disk crash (#33205)
authorSolStar <44028047+ewokswagger@users.noreply.github.com>
Fri, 8 Nov 2024 00:29:03 +0000 (19:29 -0500)
committerGitHub <noreply@github.com>
Fri, 8 Nov 2024 00:29:03 +0000 (18:29 -0600)
* Fix reserach disk crash

* remove extra whitespace

* removed args.handled where args are not handled

Content.Server/Research/Disk/ResearchDiskSystem.cs

index d32c49ce6fed493761084ae380bb7d14dd174bad..4d65c19f6e28dcabb27a07063ed2748661c78582 100644 (file)
@@ -31,6 +31,7 @@ namespace Content.Server.Research.Disk
             _research.ModifyServerPoints(args.Target.Value, component.Points, server);
             _popupSystem.PopupEntity(Loc.GetString("research-disk-inserted", ("points", component.Points)), args.Target.Value, args.User);
             EntityManager.QueueDeleteEntity(uid);
+            args.Handled = true;
         }
 
         private void OnMapInit(EntityUid uid, ResearchDiskComponent component, MapInitEvent args)