Skip to content

Commit 5545bbd

Browse files
committed
UUID
1 parent f7afc77 commit 5545bbd

File tree

1 file changed

+1
-24
lines changed

1 file changed

+1
-24
lines changed

19/src/main/java/mobi/omegacentauri/raspberryjammod/APIHandler.java

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
import java.util.NoSuchElementException;
2727
import java.util.Scanner;
2828
import java.util.Set;
29+
import java.util.UUID;
2930

3031
import net.minecraft.block.Block;
3132
import net.minecraft.block.state.IBlockState;
@@ -386,30 +387,6 @@ protected boolean setup() {
386387
playerUniqueId = mc.thePlayer.getUniqueID();
387388
playerMP = mc.getIntegratedServer().getPlayerList().getPlayerByUUID(playerUniqueId);
388389
playerId = playerMP.getEntityId();
389-
/* System.err.println("Seeking player with id "+playerId);
390-
for (Entity e : RaspberryJamMod.minecraftServer.getConfigurationManager().playerEntityList) {
391-
if (e.getEntityId() == playerId) {
392-
playerMP = (EntityPlayerMP)e;
393-
break;
394-
}
395-
} */
396-
/*
397-
for (World w : serverWorlds) {
398-
Entity e = w.getEntityByID(playerId);
399-
if (e != null) {
400-
playerMP = (EntityPlayerMP)e;
401-
break;
402-
}
403-
} */
404-
405-
if (playerMP == null) {
406-
for (World w : serverWorlds) {
407-
for (EntityPlayer p : w.playerEntities) {
408-
int id = p.getEntityId();
409-
System.err.println("Found "+id);
410-
}
411-
}
412-
}
413390
}
414391
else {
415392
playerMP = null;

0 commit comments

Comments
 (0)