Skip to content

Fix coordinate packing bug in ArcLamp#118

Merged
mitchej123 merged 4 commits intomasterfrom
fix-packing-bug
Dec 16, 2025
Merged

Fix coordinate packing bug in ArcLamp#118
mitchej123 merged 4 commits intomasterfrom
fix-packing-bug

Conversation

@mitchej123
Copy link

  • Adds a small RelativeCoordinatePacker w/ tests
  • Use relative offsets + side in ints instead of a long from CoordinatePacker
  • Fixes a bug where lightArea wouldn't re-add existing bright air so things wouldn't get cleaned up when broken properly

* Adds a small RelativeCoordinatePacker w/ tests
* Use relative offsets + side in ints instead of a long from CoordinatePacker
* Fixes a bug where lightArea wouldn't re-add existing bright air so things wouldn't get cleaned up when broken properly
@mitchej123 mitchej123 requested a review from dvdmandt December 16, 2025 23:04
Copy link

@dvdmandt dvdmandt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like a good fix for now. I think the RelativeCoordinatePacker should eventually be moved to GTNHLib as it seems really useful to have as a generic component, possibly with variable bits for coords and "extra" (like the direction bits in this case). But that's for a later discussion, for now, this looks good and fixes the problem with Arc Lamps.

@GTNewHorizons GTNewHorizons deleted a comment from github-actions bot Dec 16, 2025
@mitchej123 mitchej123 merged commit dd7ac3b into master Dec 16, 2025
1 check passed
@mitchej123 mitchej123 deleted the fix-packing-bug branch December 16, 2025 23:30
boubou19 pushed a commit that referenced this pull request Dec 22, 2025
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