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

Added (glow) ink sac to materials list for dyes #1508

Merged
merged 2 commits into from Aug 8, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -1907,7 +1907,9 @@ else if (clickedBlock != null &&
if (material.isLegacy()) continue;
if (material.name().endsWith("_SPAWN_EGG"))
spawn_eggs.add(material);
else if (material.name().endsWith("_DYE"))
else if (material.name().endsWith("_DYE")
|| material.equals(Material.GLOW_INK_SAC)
|| material.equals(Material.INK_SAC))
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should add single special cases outside of the loop, no need to check every single time around. Also, you have mixed tabs and spaces.

Copy link
Author

Choose a reason for hiding this comment

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

Ah, I see what you're talking about, I appreciate the heads up. This commit should address both issues.

dyes.add(material);
}

Expand Down