Skip to content

Commit bcbf66c

Browse files
committed
fix UninitializedSaveTest
1 parent 0cd8635 commit bcbf66c

File tree

6 files changed

+3
-28
lines changed

6 files changed

+3
-28
lines changed

Content.Server/_WL/Languages/LanguagesSystem.cs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -107,14 +107,6 @@ public void OnModifyInit(EntityUid ent, ModifyLanguagesComponent component, ref
107107

108108
public void OnComponentInit(EntityUid ent, LanguagesComponent component, ref ComponentInit args)
109109
{
110-
if (component.IsRadio)
111-
{
112-
var langPotos = GetLanguagePrototypes();
113-
component.Speaking = langPotos;
114-
component.Understood = langPotos;
115-
116-
}
117-
118110
var langs = component.Speaking;
119111
if (langs.Count == 0)
120112
return;

Content.Shared/_WL/Languages/Components/LanguageComponent.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@ public sealed partial class LanguagesComponent : Component
1313
[DataField]
1414
public bool IsSpeaking = true;
1515

16-
[DataField]
17-
public bool IsRadio = false;
18-
1916
[DataField]
2017
public List<ProtoId<LanguagePrototype>> Speaking = [];
2118

Content.Shared/_WL/Languages/SharedLanguagesSystem.cs

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -53,20 +53,7 @@ private void CacheLanguages()
5353
{
5454
_prototype.TryIndex(id, out var proto);
5555
return proto;
56-
}
57-
58-
public List<ProtoId<LanguagePrototype>> GetLanguagePrototypes()
59-
{
60-
var idlangs = new List<ProtoId<LanguagePrototype>>();
61-
var langs = _prototype.EnumeratePrototypes<LanguagePrototype>()
62-
.ToList();
63-
foreach (var language in langs)
64-
{
65-
idlangs.Add(language.ID);
66-
}
67-
68-
return idlangs;
69-
}
56+
}
7057

7158
public void OnRadioLanguageCheck(EntityUid source, LanguagesComponent comp, ref RadioLanguageCheckEvent args)
7259
{

Resources/Prototypes/Entities/Objects/Devices/radio.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@
2525
tags:
2626
- Radio
2727
- type: Languages # WL-Changes
28-
isRadio: true
29-
28+
3029
- type: entity
3130
name: security radio
3231
description: A handy security radio.

Resources/Prototypes/Entities/Structures/Machines/Computers/computers.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1386,7 +1386,6 @@
13861386
enum.WiresUiKey.Key:
13871387
type: WiresBoundUserInterface
13881388
- type: Languages # WL-Changes
1389-
isRadio: true
13901389

13911390
- type: entity
13921391
parent: ComputerSurveillanceWirelessCameraMonitor

Resources/Prototypes/Entities/Structures/Wallmounts/WallmountMachines/Monitors/televisions.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@
5757
params:
5858
volume: -4
5959
- type: StationAiWhitelist
60+
- type: Languages # WL-Changes
6061

6162
- type: entity
6263
parent: BaseWallmountGlass

0 commit comments

Comments
 (0)