mirror of
https://github.com/GTNewHorizons/Binnie.git
synced 2026-11-26 23:12:58 +00:00
Remove redundant casts, unnecessary object creation, and string ==
This commit is contained in:
1 parent
100784b51b
commit
a4cd13282a
57 files changed
+180
-156
No files matched your search
@@ -119,7 +119,7 @@ public class ModuleCore implements IInitializable {
|
||||
if (wood4 == null) {
|
||||
outputDesigns.println("<td></td>");
|
||||
} else {
|
||||
final String texture = ((EnumPattern) wood4.getTopPattern().getPattern()).toString().toLowerCase();
|
||||
final String texture = wood4.getTopPattern().getPattern().toString().toLowerCase();
|
||||
final String img2 = "<img alt=\"" + texture + "\" src=\"images/pattern/" + texture + ".png\">";
|
||||
outputDesigns.println("<td>" + img2 + " " + wood4.getName() + "</td>");
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user