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

improve DungeonBlaze.java #254

Merged

Conversation

LifeIsAParadox
Copy link
Member

  • add javadoc
  • using ArmorStandEntity instead of iterating every Entity
  • reorganize large methods into clearer multiple smaller methods
  • defined outlinecolor as constants

* add javadoc
* using ArmorStandEntity instead iterating every Entity
* reorganize large methods into clearer multiple smaller methods
* defined outlinecolor as constants
static boolean renderHooked = false;

private static final float[] WHITE_COLOR_COMPONENTS = {1.0f, 1.0f, 1.0f};
private static final QuadColor outlineColorGreen = QuadColor.single(0.0F, 1.0F, 0.0F, 1f);
Copy link
Contributor

@Julienraptor01 Julienraptor01 Aug 23, 2023

Choose a reason for hiding this comment

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

Suggested change
private static final QuadColor outlineColorGreen = QuadColor.single(0.0F, 1.0F, 0.0F, 1f);
private static final QuadColor outlineColorGreen = QuadColor.single(0.0f, 1.0f, 0.0f, 1.0f);

for coherence with the other values

Comment on lines 152 to 153
e.printStackTrace();
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
LOGGER.warn("[Skyblocker BlazeRenderer] " + e);
e.printStackTrace();
LOGGER.warn("[Skyblocker Dungeon Blaze] Encountered an unknown exception", e);

Something like this would be better than printStackTrace.

*/
private static void handleException(Exception e) {
LOGGER.warn("[Skyblocker BlazeRenderer] Encountered an unknown exception" + e);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
LOGGER.warn("[Skyblocker BlazeRenderer] Encountered an unknown exception" + e);
LOGGER.warn("[Skyblocker BlazeRenderer] Encountered an unknown exception", e);

@kevinthegreat1 kevinthegreat1 merged commit fbe9759 into SkyblockerMod:master Aug 31, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants