- fix: engine update fix
Some checks failed
Build & Test Map Renderer / build (ubuntu-latest) (push) Has been cancelled
Build & Test Debug / build (ubuntu-latest) (push) Has been cancelled
Check Merge Conflicts / Label (push) Has been cancelled
Test Packaging / Test Packaging (push) Has been cancelled
RGA schema validator / YAML RGA schema validator (push) Has been cancelled
Map file schema validator / YAML map schema validator (push) Has been cancelled
YAML Linter / YAML Linter (push) Has been cancelled
Build & Test Map Renderer / Build & Test Debug (push) Has been cancelled
Build & Test Debug / Build & Test Debug (push) Has been cancelled
Benchmarks / Run Benchmarks (push) Has been cancelled
Update Contrib and Patreons in credits / get_credits (push) Has been cancelled
Build & Publish Docfx / docfx (push) Has been cancelled
Some checks failed
Build & Test Map Renderer / build (ubuntu-latest) (push) Has been cancelled
Build & Test Debug / build (ubuntu-latest) (push) Has been cancelled
Check Merge Conflicts / Label (push) Has been cancelled
Test Packaging / Test Packaging (push) Has been cancelled
RGA schema validator / YAML RGA schema validator (push) Has been cancelled
Map file schema validator / YAML map schema validator (push) Has been cancelled
YAML Linter / YAML Linter (push) Has been cancelled
Build & Test Map Renderer / Build & Test Debug (push) Has been cancelled
Build & Test Debug / Build & Test Debug (push) Has been cancelled
Benchmarks / Run Benchmarks (push) Has been cancelled
Update Contrib and Patreons in credits / get_credits (push) Has been cancelled
Build & Publish Docfx / docfx (push) Has been cancelled
This commit is contained in:
@@ -128,7 +128,7 @@ public sealed partial class HallucinationsSystem : EntitySystem
|
||||
|
||||
var hallucination = Spawn(_random.Pick(stat.Spawns), newCoords);
|
||||
EnsureComp<VisibilityComponent>(hallucination, out var visibility);
|
||||
_visibilitySystem.SetLayer(hallucination, visibility, (int) stat.Layer, false);
|
||||
_visibilitySystem.SetLayer(new Entity<VisibilityComponent?>(hallucination, visibility), (ushort) stat.Layer, false);
|
||||
_visibilitySystem.RefreshVisibility(hallucination, visibilityComponent: visibility);
|
||||
}
|
||||
|
||||
@@ -140,7 +140,7 @@ public sealed partial class HallucinationsSystem : EntitySystem
|
||||
|
||||
var uidhallucination = Spawn(_random.Pick(stat.Spawns), uidnewCoords);
|
||||
EnsureComp<VisibilityComponent>(uidhallucination, out var uidvisibility);
|
||||
_visibilitySystem.SetLayer(uidhallucination, uidvisibility, (int) stat.Layer, false);
|
||||
_visibilitySystem.SetLayer(new Entity<VisibilityComponent?>(uidhallucination, uidvisibility), (ushort) stat.Layer, false);
|
||||
_visibilitySystem.RefreshVisibility(uidhallucination, visibilityComponent: uidvisibility);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user