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

fix the smelter #2189

Merged
merged 16 commits into from
Feb 9, 2018
Merged

fix the smelter #2189

merged 16 commits into from
Feb 9, 2018

Conversation

Raycoms
Copy link
Contributor

@Raycoms Raycoms commented Feb 7, 2018

Closes #2144

Rewrite of the smelter should work way smoother and less error-prone now.

Changes proposed in this pull request:

  • Simplifying the smelter tasks.
  • More iterations through START_WORKING
  • Need this tested first!

Review please

@ldtteam ldtteam deleted a comment Feb 8, 2018
mkienenb and others added 7 commits February 8, 2018 16:18
Add javadocs.
Use translation constants.
Use consistent naming for AI states and AI State methods.
Note areas where changes should be made.
Fix checkstyle warnings.
Combine startWorking() and checkForAdditionalJobs() as the division is arbitrary.
@ldtteam ldtteam deleted a comment Feb 9, 2018
@ldtteam ldtteam deleted a comment Feb 9, 2018
@ldtteam ldtteam deleted a comment Feb 9, 2018
@ldtteam ldtteam deleted a comment Feb 9, 2018
@ldtteam ldtteam deleted a comment Feb 9, 2018
@ldtteam ldtteam deleted a comment Feb 9, 2018
@ldtteam ldtteam deleted a comment Feb 9, 2018
*/
private AIState fillUpFurnace()
{
if (((BuildingSmeltery) getOwnBuilding()).getFurnaces().isEmpty())
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you sure this works for the Cook. Is his building an instance of BuildingSmeltery or BuildingRestaurant?

@ldtteam ldtteam deleted a comment Feb 9, 2018
@ldtteam ldtteam deleted a comment Feb 9, 2018
* Abstract Class for all furnace users.
*/
@SuppressWarnings(OVERRIDE_EQUALS)
public abstract class AbstractBuildingFurnaceUser extends AbstractBuildingWorker

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MINOR Override the "equals" method in this class. rule

@ldtteam ldtteam deleted a comment Feb 9, 2018
@ldtteam ldtteam deleted a comment Feb 9, 2018
@BuildTeamLinter
Copy link

SonarQube analysis reported 64 issues

  • CRITICAL 1 critical
  • MAJOR 54 major
  • MINOR 1 minor
  • INFO 8 info

Watch the comments in this conversation to review them.

Top 10 extra issues

Note: The following issues were found on lines that were not modified in the pull request. Because these issues can't be reported as line comments, they are summarized here:

  1. CRITICAL BlockConstructionTape.java#L360: Reduce the number of conditional operators (7) used in the expression (maximum allowed 6). rule
  2. MAJOR blocks#: Add a 'package-info.java' file to document the 'blocks' package rule
  3. MAJOR BlockConstructionTape.java#L360: Assign this magic number 3 to a well-named constant, and use the constant instead. rule
  4. MAJOR BlockConstructionTape.java#L360: Assign this magic number 3 to a well-named constant, and use the constant instead. rule
  5. MAJOR BlockConstructionTape.java#L448: Reduce this class from 59 to the maximum allowed 30 or externalize it in a public class. rule
  6. MAJOR gui#: Add a 'package-info.java' file to document the 'gui' package rule
  7. MAJOR render#: Add a 'package-info.java' file to document the 'render' package rule
  8. MAJOR colony#: Add a 'package-info.java' file to document the 'colony' package rule
  9. MAJOR buildings#: Add a 'package-info.java' file to document the 'buildings' package rule
  10. MAJOR BuildingSmeltery.java#L97: Assign this magic number 3 to a well-named constant, and use the constant instead. rule

@ldtteam ldtteam deleted a comment Feb 9, 2018
@Raycoms Raycoms merged commit 5bb12ff into version/1.12 Feb 9, 2018
@Raycoms Raycoms deleted the fix/smelter branch February 9, 2018 15:58
Raycoms added a commit that referenced this pull request Feb 12, 2018
Rewrite of Smelter and cook to gain more stability.
Also fixes the hitboxes of the new construction-tape.
Raycoms added a commit that referenced this pull request Feb 14, 2018
* Open GUI on server-side, not client-side (#2195)

Changes proposed in this pull request:

Get rid of evil comment.
Change gui open from client-side to server-side. (Fixes #2194)

* fix the smelter (#2189)

Rewrite of Smelter and cook to gain more stability.
Also fixes the hitboxes of the new construction-tape.

* fixe herders spawn egg problem and cycling recipes (#2202)

* Feature/better builder (#2209)

Fixes message concurrency issues
Fixes timberframe issues
Fixes dumping issues

* 1.11/last-changes: Auto stash before cherrypick of "fix the smelter (#2189)"

* fix compile issues

* Minor fixes (#2226)

Fixes constructiontape being placed on workLoad
Fixes issues with deleted structures
Protects buildings from being detected as trees
Reduces particle effects
Reports block position if tool is not good enough.
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