File tree Expand file tree Collapse file tree 1 file changed +1
-24
lines changed
19/src/main/java/mobi/omegacentauri/raspberryjammod Expand file tree Collapse file tree 1 file changed +1
-24
lines changed Original file line number Diff line number Diff line change 2626import java .util .NoSuchElementException ;
2727import java .util .Scanner ;
2828import java .util .Set ;
29+ import java .util .UUID ;
2930
3031import net .minecraft .block .Block ;
3132import 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 ;
You can’t perform that action at this time.
0 commit comments