Skip to content

Conversation

@EmeraldBlock
Copy link
Collaborator

@EmeraldBlock EmeraldBlock commented Jan 13, 2026

port of tobspr-games#1364 by @Sense101. Begins with a (hopefully) faithful merge with CE changes, had to be done pretty manually because many files' line endings changed. Marking as draft since it's probably worth reviewing the new system to make changes and fixes

enjoy the commit history!

@EmeraldBlock EmeraldBlock force-pushed the sence branch 2 times, most recently from 098f2c0 to dad817d Compare January 14, 2026 03:54
includes:
- comments to document behavior more clearly
- TODO messages for parts worth revisiting
- trivial code changes, mainly switching to for...of loops
- belt path code is nontrivially changed in 2 small ways, but should be identical behavior done in a clearer way
@EmeraldBlock
Copy link
Collaborator Author

I've processed the belt item logic!! Might draft up a design description for how the systems should take turns and not lose progress

Should be simpler to understand and robust against processing order issues.
…Time

Could happen when a processor backs up; the remainingTime was left as a slight negative (representing overspent time).
Originally, completed inputs were deleted after a processor charge can move on to the ejection queue. However, the charge does not remember which slots it consumed from, which matters for buildings like the balancer that don't need all inputs.
The downside is now more items fit in a backed-up building (from 4 to 5 for a 1-to-1 building).
Now, inputs cannot move to completedInputs if there's already something in the corresponding slot.
This way, instead of limiting an acceptor slot to holding 2 items between inputs and completedInputs, we can just limit to 1 in inputs to about the same effect.
The code for multiple items is still left in in case it becomes relevant later. It should otherwise be removed or refactored.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants