Skip to content
This repository was archived by the owner on Oct 20, 2021. It is now read-only.

Commit 4fcfd59

Browse files
authored
Upgrade to entities 0.14 (#293)
1 parent ba6608a commit 4fcfd59

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

gdk.pinned

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
develop 9d642b99e7444549ff2a4d3f8dc5506a601f475b
1+
develop 03f85efd31a120e2157375f17a4b52c84c5a043c

workers/unity/Assets/Fps/Scripts/Guns/Systems/ServerShootingSystem.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ protected override void OnUpdate()
4444
continue;
4545
}
4646

47-
if (!gunDataForEntity.Exists(shooterEntity))
47+
if (!gunDataForEntity.HasComponent(shooterEntity))
4848
{
4949
continue;
5050
}

workers/unity/Assets/Fps/Scripts/Health/Systems/HealthRegenSystem.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ private void ProcessDamageEvents()
8888
{
8989
ref readonly var healthEvent = ref healthModifiedEvents[i];
9090
var entity = workerSystem.GetEntity(healthEvent.EntityId);
91-
if (!healthAuthority.Exists(entity))
91+
if (!healthAuthority.HasComponent(entity))
9292
{
9393
continue;
9494
}

0 commit comments

Comments
 (0)