Bugfixes (#1432)
* fix #1428 * CodTenAlt review * fix map tests * real this time * fix #1429 * add wheat and cotton into victorian gardens trade faction * Update PostMapInitTest.cs
This commit is contained in:
@@ -11,7 +11,6 @@ public sealed class CP14ReligionEntityBoundUserInterface : BoundUserInterface
|
||||
|
||||
public CP14ReligionEntityBoundUserInterface(EntityUid owner, Enum uiKey) : base(owner, uiKey)
|
||||
{
|
||||
IoCManager.InjectDependencies(this);
|
||||
}
|
||||
|
||||
protected override void Open()
|
||||
|
||||
@@ -11,6 +11,7 @@ namespace Content.Client._CP14.Religion;
|
||||
public sealed partial class CP14ReligionEntityWindow : DefaultWindow
|
||||
{
|
||||
[Dependency] private readonly ILogManager _log = default!;
|
||||
|
||||
private ISawmill Sawmill { get; init; }
|
||||
|
||||
public event Action<NetEntity>? OnTeleportAttempt;
|
||||
|
||||
@@ -31,6 +31,7 @@ public sealed class CP14ReligionVisionOverlay : Overlay
|
||||
private readonly Vector2[] _positions = new Vector2[MaxCount];
|
||||
private readonly float[] _radii = new float[MaxCount];
|
||||
private int _count = 0;
|
||||
|
||||
public CP14ReligionVisionOverlay()
|
||||
{
|
||||
IoCManager.InjectDependencies(this);
|
||||
@@ -40,12 +41,9 @@ public sealed class CP14ReligionVisionOverlay : Overlay
|
||||
_transform = _entManager.System<SharedTransformSystem>();
|
||||
|
||||
if (_entManager.TryGetComponent<CP14ReligionEntityComponent>(_player.LocalEntity, out var vision))
|
||||
{
|
||||
_religion = vision.Religion;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
protected override bool BeforeDraw(in OverlayDrawArgs args)
|
||||
{
|
||||
if (args.Viewport.Eye == null)
|
||||
|
||||
Reference in New Issue
Block a user