From 78866b8e89f4060f5a03e8a66888b8899d3c2c83 Mon Sep 17 00:00:00 2001 From: Jordan Byrne Date: Sun, 10 Dec 2017 19:32:21 +1000 Subject: + Added First Test unit for Analytics. (Analytics Class is not available publicly, but please do ask for a redacted version.) + Added support for Fancy Graphics and shit Graphics modes. (Things like leaves will soon have variable textures) + Added Beyond Reality Classic check, for future pack specific features. % Refactored CORE.java - Removed many useless or duplicate GT variables. --- src/Java/gtPlusPlus/core/util/player/PlayerUtils.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/Java/gtPlusPlus/core/util') diff --git a/src/Java/gtPlusPlus/core/util/player/PlayerUtils.java b/src/Java/gtPlusPlus/core/util/player/PlayerUtils.java index f1462ba51e..e566a41849 100644 --- a/src/Java/gtPlusPlus/core/util/player/PlayerUtils.java +++ b/src/Java/gtPlusPlus/core/util/player/PlayerUtils.java @@ -22,19 +22,19 @@ public class PlayerUtils { } public static EntityPlayer getPlayer(final String name){ - final List i = new ArrayList<>(); - final Iterator crunchifyIterator = MinecraftServer.getServer().getConfigurationManager().playerEntityList.iterator(); - while (crunchifyIterator.hasNext()) { - i.add((crunchifyIterator.next())); - } try{ + final List i = new ArrayList<>(); + final Iterator iterator = MinecraftServer.getServer().getConfigurationManager().playerEntityList.iterator(); + while (iterator.hasNext()) { + i.add((EntityPlayer) (iterator.next())); + } for (final EntityPlayer temp : i) { if (temp.getDisplayName().toLowerCase().equals(name.toLowerCase())){ return temp; } } } - catch(final NullPointerException e){} + catch(final Throwable e){} return null; } -- cgit