quick fix : String comparison using '==', instead of 'equals()'

This commit is contained in:
Alexdoru authored and Jason Mitchell committed 2023-01-28 18:02:41 -08:00
1 parent fbccf4e087
commit 544f51e532
2 files changed
+2 -2

No files matched your search

@@ -51,7 +51,7 @@ public class OreberryBush extends BlockLeavesBase implements IPlantable {
this.fancyIcons = new IIcon[textureNames.length];
for (int i = 0; i < this.fastIcons.length; i++) {
if (textureNames[i] != "") {
if (!"".equals(textureNames[i])) {
this.fastIcons[i] = iconRegister.registerIcon("tinker:crops/" + textureNames[i] + "_fast");
this.fancyIcons[i] = iconRegister.registerIcon("tinker:crops/" + textureNames[i] + "_fancy");
}
@@ -57,7 +57,7 @@ public class TBaseWorldGenerator implements IWorldGenerator {
generateUndergroundOres(random, xChunk, zChunk, world);
if (biomeName == "Extreme Hills Edge" || biomeName == "Extreme Hills") {
if ("Extreme Hills Edge".equals(biomeName) || "Extreme Hills".equals(biomeName)) {
generateUndergroundOres(random, xChunk, zChunk, world);
}
}