aboutsummaryrefslogtreecommitdiff
path: root/src/Java/gtPlusPlus/core/util
diff options
context:
space:
mode:
authorJordan Byrne <draknyte1@hotmail.com>2017-12-10 19:32:21 +1000
committerJordan Byrne <draknyte1@hotmail.com>2017-12-10 19:32:21 +1000
commit78866b8e89f4060f5a03e8a66888b8899d3c2c83 (patch)
tree648f7c633c90d862c13889a32bcbb5b6626ec27a /src/Java/gtPlusPlus/core/util
parent6d2e0d2192356447b37809f62c6eb41faf09a83b (diff)
downloadGT5-Unofficial-78866b8e89f4060f5a03e8a66888b8899d3c2c83.tar.gz
GT5-Unofficial-78866b8e89f4060f5a03e8a66888b8899d3c2c83.tar.bz2
GT5-Unofficial-78866b8e89f4060f5a03e8a66888b8899d3c2c83.zip
+ 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.
Diffstat (limited to 'src/Java/gtPlusPlus/core/util')
-rw-r--r--src/Java/gtPlusPlus/core/util/player/PlayerUtils.java12
1 files changed, 6 insertions, 6 deletions
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<EntityPlayer> i = new ArrayList<>();
- final Iterator<EntityPlayer> crunchifyIterator = MinecraftServer.getServer().getConfigurationManager().playerEntityList.iterator();
- while (crunchifyIterator.hasNext()) {
- i.add((crunchifyIterator.next()));
- }
try{
+ final List<EntityPlayer> i = new ArrayList<>();
+ final Iterator<EntityPlayerMP> 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;
}