quick fix : Redundant String operation

This commit is contained in:
Alexdoru authored and Jason Mitchell committed 2023-01-28 18:02:41 -08:00
1 parent d4ffbd85f4
commit 14f970318b
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);
}
}