]> git.smokeofanarchy.ru Git - space-station-14.git/commit
Fix wire layout inheritance. (#26289)
authorPieter-Jan Briers <pieterjan.briers+git@gmail.com>
Wed, 20 Mar 2024 15:22:47 +0000 (16:22 +0100)
committerGitHub <noreply@github.com>
Wed, 20 Mar 2024 15:22:47 +0000 (16:22 +0100)
commita4692004de978cda6761d4090e13ed4d8bc1fa11
tree933b1456c2f513488150c129b9257b3fba47060f
parentfc76996dc55b19b313b621b2fb9025b9198e4b7d
Fix wire layout inheritance. (#26289)

Wire layouts manually navigate the inheritance hierarchy, but the data fields on the prototypes were also automatically inherited already. This meant that inheriting a wire layout prototype and changing nothing would cause the wires to be duplicated unless they were manually modified on top.

Fix is easy: just disable inheritance on the data fields.

Also, integration test for it.
Content.IntegrationTests/Tests/Wires/WireLayoutTest.cs [new file with mode: 0644]
Content.Server/Wires/WireLayout.cs