-
-
Notifications
You must be signed in to change notification settings - Fork 345
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Small improvements #10101
Small improvements #10101
Conversation
@@ -598,7 +598,7 @@ | |||
"com.minecolonies.coremod.gui.workerhuts.resourcelist": "Required Resources", | |||
|
|||
"com.minecolonies.coremod.gui.workerhuts.recall": "Recall Worker", | |||
"com.minecolonies.coremod.gui.workerhuts.workerassigned": "Assigned Workers:", | |||
"com.minecolonies.coremod.gui.workerhuts.workerassigned": "§lAssigned Workers:", |
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.
Can't you modify this on the component level in the code instead of modifying the translation?
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.
Technichally yes, but it's more roundabout and we do that with a lot of text already here
@@ -486,7 +486,7 @@ public void reduceNeededResources(final ItemStack stack) | |||
@Override | |||
protected boolean checkIfCanceled() | |||
{ | |||
if ((job.getWorkOrder() == null && job.getBlueprint() != null) || (structurePlacer != null && !structurePlacer.getB().hasBluePrint())) | |||
if ((job.hasWorkOrder() && job.getWorkOrder() == null) || (job.getWorkOrder() == null && job.getBlueprint() != null) || (structurePlacer != null && !structurePlacer.getB().hasBluePrint())) |
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.
has and get should be equvialent to get and null check, if has is true the get should always return sth
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.
hasWorkorder just checks if it has an id assigned atm, get actually fetches the workmanager one. I think it's also a performance thing. I could rename it to hasWorkOrderId or so
Add another null check to avoid some transition crashes in the resource scroll Proper show stash/postbox naming in requests Allow builder to recover from broken workorder setups Adjust recruitment interaction to properly display the recruitment text @Nightenom the pane builder culls the last added line? Adjust window resource tab to not overflow and add tooltip hover to always show even if overflowing Adjust min stock and courier assignment window to use the space better
Closes #10021
Closes #10025
Closes #9889
Closes #10082
Closes #10084
Closes #10094
Changes proposed in this pull request:
[ x ] Yes I tested this before submitting it.
[ ] I also did a multiplayer test.
Review please