      }
  
      /**
-@@ -289,6 +294,10 @@
+@@ -245,6 +250,7 @@
+             var5.copyPlayer(par1EntityPlayerMP);
+         }
+ 
++        var5.dimension = par2;
+         var5.entityId = par1EntityPlayerMP.entityId;
+         var5.playerNetServerHandler = par1EntityPlayerMP.playerNetServerHandler;
+         WorldServer var6 = this.mcServer.getWorldManager(par1EntityPlayerMP.dimension);
+@@ -289,6 +295,10 @@
       */
      public void sendPlayerToOtherDimension(EntityPlayerMP par1EntityPlayerMP, int par2)
      {

         int var3 = par1EntityPlayerMP.dimension;
         WorldServer var4 = this.mcServer.getWorldManager(par1EntityPlayerMP.dimension);
         par1EntityPlayerMP.dimension = par2;
@@ -296,33 +305,14 @@
         par1EntityPlayerMP.playerNetServerHandler.sendPacket(new Packet9Respawn(par1EntityPlayerMP.dimension, (byte)par1EntityPlayerMP.worldObj.difficultySetting, var5.getWorldInfo().getTerrainType(), var5.getHeight(), par1EntityPlayerMP.itemInWorldManager.getGameType()));
         var4.removePlayer(par1EntityPlayerMP);
         par1EntityPlayerMP.isDead = false;

         {
             ChunkCoordinates var12 = var5.getEntrancePortalLocation();
             var6 = (double)var12.posX;
@@ -342,7 +333,7 @@
             par1EntityPlayerMP.setLocationAndAngles(var6, par1EntityPlayerMP.posY, var8, par1EntityPlayerMP.rotationYaw, par1EntityPlayerMP.rotationPitch);
             var5.updateEntityWithOptionalForce(par1EntityPlayerMP, false);
             var5.chunkProviderServer.chunkLoadOverride = true;
