Skip to content
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

Merged
merged 9 commits into from
Aug 9, 2024
Merged

Small improvements #10101

merged 9 commits into from
Aug 9, 2024

Conversation

Raycoms
Copy link
Contributor

@Raycoms Raycoms commented Aug 9, 2024

Closes #10021
Closes #10025
Closes #9889
Closes #10082
Closes #10084
Closes #10094

Changes proposed in this pull request:

  • 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

[ x ] Yes I tested this before submitting it.
[ ] I also did a multiplayer test.

Review please

@@ -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:",
Copy link
Contributor

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?

Copy link
Contributor Author

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()))
Copy link
Contributor

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

Copy link
Contributor Author

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

@Raycoms Raycoms merged commit cdfa65d into version/main Aug 9, 2024
1 check passed
@Raycoms Raycoms deleted the small-improvements branch August 9, 2024 17:28
Raycoms added a commit that referenced this pull request Aug 12, 2024
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
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
3 participants