Fix research disk crash (#33205)
* Fix reserach disk crash * remove extra whitespace * removed args.handled where args are not handled
This commit is contained in:
@@ -31,6 +31,7 @@ namespace Content.Server.Research.Disk
|
|||||||
_research.ModifyServerPoints(args.Target.Value, component.Points, server);
|
_research.ModifyServerPoints(args.Target.Value, component.Points, server);
|
||||||
_popupSystem.PopupEntity(Loc.GetString("research-disk-inserted", ("points", component.Points)), args.Target.Value, args.User);
|
_popupSystem.PopupEntity(Loc.GetString("research-disk-inserted", ("points", component.Points)), args.Target.Value, args.User);
|
||||||
EntityManager.QueueDeleteEntity(uid);
|
EntityManager.QueueDeleteEntity(uid);
|
||||||
|
args.Handled = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void OnMapInit(EntityUid uid, ResearchDiskComponent component, MapInitEvent args)
|
private void OnMapInit(EntityUid uid, ResearchDiskComponent component, MapInitEvent args)
|
||||||
|
|||||||
Reference in New Issue
Block a user