Skip to content

fix(zones): set zone distance on creation#44

Merged
FjamZoo merged 2 commits intoCommunityOx:mainfrom
PotatoFarmer441:patch-1
Aug 30, 2025
Merged

fix(zones): set zone distance on creation#44
FjamZoo merged 2 commits intoCommunityOx:mainfrom
PotatoFarmer441:patch-1

Conversation

@PotatoFarmer441
Copy link

Possibly resolves a bug introduced by the grid changes when distance is erroneously passed to the zone creation data and referenced by other scripts.

NOTE: This particular micro-optimisation is no longer suitable as it will not update if the zone is outside your neighbouring cells. In the future, it would be better to calculate the distance when referenced using an __index metamethod (caching optional).

@FjamZoo FjamZoo merged commit d6417b9 into CommunityOx:main Aug 30, 2025
@PotatoFarmer441 PotatoFarmer441 deleted the patch-1 branch November 1, 2025 21:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants