Skip to content

Conversation

@DarkShadow44
Copy link
Contributor

For GTNewHorizons/GT-New-Horizons-Modpack#22432

Current logic that the larvae only gets moved into the finished area once there is a serum that can't be applied anymore. This kinda makes sense, since it prevents moving larvae into the finished slot if they didn't get processed yet.

But that means it won't move larvae once the serum runs out, which doesn't sound like behavior we want. This PR attempts to address that, by tracking the stack that got worked on, and allowing moving out larvae once the serum runs out - but only if they got worked on.

This is a bit more complicated, since the user can, at any point, remove the larvae from the target (middle) slot and it gets refilled, which happens in the same tick. I simply check if it's a different larvae, and then reset the workedOnStack. If the finished larvae gets replaced by an identical larvae (which should be super rare) it is allowed to be moved out, since I can't differentiate this. Seems fine to me though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🚧 Testing on Zeta Do not merge yet, testing this PR on Zeta

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants