mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-19 19:59:55 +00:00
quick fix : Redundant String operation
This commit is contained in:
1 parent
332da658bd
commit
92e46b123f
3 files changed
+7
-8
No files matched your search
@@ -71,7 +71,7 @@ public class TPlayerHandler {
|
||||
}
|
||||
}
|
||||
|
||||
if (player.getDisplayName().toLowerCase().equals("fractuality")) {
|
||||
if (player.getDisplayName().equalsIgnoreCase("fractuality")) {
|
||||
ItemStack pattern = new ItemStack(TinkerTools.woodPattern, 1, 22);
|
||||
|
||||
NBTTagCompound compound = new NBTTagCompound();
|
||||
@@ -86,7 +86,7 @@ public class TPlayerHandler {
|
||||
AbilityHelper.spawnItemAtPlayer(player, pattern);
|
||||
}
|
||||
|
||||
if (player.getDisplayName().toLowerCase().equals("zerokyuuni")) {
|
||||
if (player.getDisplayName().equalsIgnoreCase("zerokyuuni")) {
|
||||
ItemStack pattern = new ItemStack(Items.stick);
|
||||
|
||||
NBTTagCompound compound = new NBTTagCompound();
|
||||
@@ -99,7 +99,7 @@ public class TPlayerHandler {
|
||||
|
||||
AbilityHelper.spawnItemAtPlayer(player, pattern);
|
||||
}
|
||||
if (player.getDisplayName().toLowerCase().equals("zisteau")) {
|
||||
if (player.getDisplayName().equalsIgnoreCase("zisteau")) {
|
||||
spawnPigmanModifier(player);
|
||||
}
|
||||
|
||||
@@ -140,7 +140,7 @@ public class TPlayerHandler {
|
||||
|
||||
AbilityHelper.spawnItemAtPlayer(player, modifier);
|
||||
|
||||
if (player.getDisplayName().toLowerCase().equals("zisteau")) {
|
||||
if (player.getDisplayName().equalsIgnoreCase("zisteau")) {
|
||||
spawnPigmanModifier(player);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -32,7 +32,7 @@ public final class TextureHelper {
|
||||
int i = texture.indexOf(':');
|
||||
|
||||
if (i > 0) {
|
||||
texture = texture.substring(0, i) + ":textures/blocks/" + texture.substring(i + 1, texture.length());
|
||||
texture = texture.substring(0, i) + ":textures/blocks/" + texture.substring(i + 1);
|
||||
} else {
|
||||
texture = "textures/blocks/" + texture;
|
||||
}
|
||||
@@ -45,7 +45,7 @@ public final class TextureHelper {
|
||||
int i = texture.indexOf(':');
|
||||
|
||||
if (i > 0) {
|
||||
texture = texture.substring(0, i) + ":textures/items/" + texture.substring(i + 1, texture.length());
|
||||
texture = texture.substring(0, i) + ":textures/items/" + texture.substring(i + 1);
|
||||
} else {
|
||||
texture = "textures/items/" + texture;
|
||||
}
|
||||
|
||||
@@ -367,8 +367,7 @@ public class WeaponryHandler {
|
||||
.getTagCompound()
|
||||
.getCompoundTag("display")
|
||||
.getString("Name")
|
||||
.toLowerCase()
|
||||
.equals("banana")) return;
|
||||
.equalsIgnoreCase("banana")) return;
|
||||
event.name =
|
||||
'\u2400' + "Bonæna"; // the \u2400 is a non-printable unicode character so you can't just type it
|
||||
event.headStack = new ItemStack(TinkerTools.swordBlade, 1, TinkerTools.MaterialID.Bone);
|
||||
|
||||
Reference in new issue
Block a user