Fix some textcomponent-string comparisons

This commit is contained in:
Vincent Lee committed 2019-11-13 17:52:47 -06:00
1 parent 7b2fd3db48
commit 90aba57049
2 files changed
+3 -2

No files matched your search

@@ -308,7 +308,7 @@ public final class HUDHandler {
int y = mc.mainWindow.getScaledHeight() / 2 + 10;
int u = tile.getCurrentMana() >= recipe.getManaToConsume() ? 0 : 22;
int v = mc.player.getName().equals("haighyorkie") && mc.player.isSneaking() ? 23 : 8;
int v = mc.player.getName().getString().equals("haighyorkie") && mc.player.isSneaking() ? 23 : 8;
GlStateManager.enableBlend();
GlStateManager.blendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);
@@ -115,7 +115,8 @@ public class ItemTerraSword extends ItemManasteelSword implements ILensEffect {
UUID attacker = ItemNBTHelper.getUuid(burst.getSourceLens(), TAG_ATTACKER_UUID);
for(LivingEntity living : entities) {
if(living instanceof PlayerEntity && (living.getName().getString().equals(attacker) || ServerLifecycleHooks.getCurrentServer() != null && !ServerLifecycleHooks.getCurrentServer().isPVPEnabled()))
if(living instanceof PlayerEntity && (living.getUniqueID().equals(attacker)
|| ServerLifecycleHooks.getCurrentServer() != null && !ServerLifecycleHooks.getCurrentServer().isPVPEnabled()))
continue;
if(living.hurtTime == 0) {