]> git.smokeofanarchy.ru Git - space-station-14.git/commit
Fix CanImplant returning true when there's no implant (#21637)
authorBakke <luringens@protonmail.com>
Mon, 13 Nov 2023 22:53:54 +0000 (23:53 +0100)
committerGitHub <noreply@github.com>
Mon, 13 Nov 2023 22:53:54 +0000 (15:53 -0700)
commit966201c6b3c704756038fefd436963950317ccb2
treea9543b6472f9bbb8313d2c374f2e3d45c8705227
parente3307fcd9d8ccd5324cbdffba8cac111f4d367ea
Fix CanImplant returning true when there's no implant (#21637)

In CanImplant, FirstOrDefault would make up a new implant with default
values if there wasn't any to inject. This resulted in localization
errors and exceptions. Replacing with FirstOrNull fixes the issue.
Content.Shared/Implants/SharedImplanterSystem.cs