-
Notifications
You must be signed in to change notification settings - Fork 10
Cargo polishing #543
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: more-cargo-blocks
Are you sure you want to change the base?
Cargo polishing #543
Conversation
LordIdra
commented
Dec 31, 2025
- Renames LogisticSlotType to LogisticGroupType
- Update cargo ticking logic to work with multiple target slots instead of just duplicating the items across all of them lmao
- Fix cargo routes not invalidating in certain situations
- Fix cargo routes with no endpoint not being cached (lol)
- Add logistic slots for vanilla inventories, and a method which gets all the logistic groups for a vanilla block
OhmV-IR
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that util function bothers me
pylon-core/src/main/kotlin/io/github/pylonmc/pylon/core/util/PylonUtils.kt
Outdated
Show resolved
Hide resolved
pylon-core/src/main/kotlin/io/github/pylonmc/pylon/core/util/PylonUtils.kt
Outdated
Show resolved
Hide resolved
Seggan
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM mostly
| val blockData = block?.state | ||
| return when (blockData) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| val blockData = block?.state | |
| return when (blockData) { | |
| return when (val blockData = block?.state) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Quite a few unused imports
OhmV-IR
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm