Fixed NEI Ghost Overlays.

This commit is contained in:
AlgorithmX2
2014-07-09 22:18:50 -05:00
parent ca6cdf50c1
commit d2e332eedb
5 changed files with 56 additions and 11 deletions
+5 -6
View File
@@ -5,11 +5,8 @@ import java.io.IOException;
import java.lang.ref.WeakReference;
import java.util.ArrayList;
import java.util.List;
import java.util.Map.Entry;
import java.util.WeakHashMap;
import com.mojang.authlib.GameProfile;
import net.minecraft.entity.player.EntityPlayerMP;
import net.minecraftforge.common.DimensionManager;
import net.minecraftforge.common.config.ConfigCategory;
@@ -22,6 +19,8 @@ import appeng.me.GridStorage;
import appeng.me.GridStorageSearch;
import appeng.services.CompassService;
import com.mojang.authlib.GameProfile;
public class WorldSettings extends Configuration
{
@@ -240,12 +239,12 @@ public class WorldSettings extends Configuration
public int getPlayerID(GameProfile profile)
{
ConfigCategory playerList = this.getCategory( "players" );
if ( playerList == null || profile == null || !profile.isComplete() )
return -1;
String uuid = profile.getId().toString();
String uuid = profile.getId().toString();
Property prop = playerList.get( uuid );
if ( prop != null && prop.isIntValue() )
return prop.getInt();