Ejemplo n.º 1
0
 public void func_778_b(EntityPlayerMP entityplayermp)
 {
     if (!field_1072_b.contains(entityplayermp))
     {
         (new IllegalStateException(
              (new StringBuilder()).append("Failed to remove player. ").append(entityplayermp).append(
                  " isn't in chunk ").append(field_1071_c).append(", ").append(field_1070_d).toString())).
         printStackTrace();
         return;
     }
     field_1072_b.remove(entityplayermp);
     if (field_1072_b.size() == 0)
     {
         long l = field_1071_c + 0x7fffffffL | field_1070_d + 0x7fffffffL << 32;
         PlayerManager.func_539_b(field_1073_a).func_670_b(l);
         if (field_1067_g > 0)
         {
             PlayerManager.func_533_c(field_1073_a).remove(this);
         }
         PlayerManager.getMinecraftServer(field_1073_a).worldMngr.field_20911_y.func_374_c(field_1071_c,
                                                                                           field_1070_d);
     }
     entityplayermp.loadedChunks.remove(field_1069_e);
     if (entityplayermp.field_420_ah.contains(field_1069_e))
     {
         entityplayermp.playerNetServerHandler.sendPacket(new Packet50PreChunk(field_1071_c, field_1070_d, false));
     }
 }
Ejemplo n.º 2
0
        public void func_775_a(int i, int j, int k)
        {
            if (field_1067_g == 0)
            {
                PlayerManager.func_533_c(field_1073_a).add(this);
                field_1066_h = field_1065_i = i;
                field_1064_j = field_1063_k = j;
                field_1062_l = field_1061_m = k;
            }
            if (field_1066_h > i)
            {
                field_1066_h = i;
            }
            if (field_1065_i < i)
            {
                field_1065_i = i;
            }
            if (field_1064_j > j)
            {
                field_1064_j = j;
            }
            if (field_1063_k < j)
            {
                field_1063_k = j;
            }
            if (field_1062_l > k)
            {
                field_1062_l = k;
            }
            if (field_1061_m < k)
            {
                field_1061_m = k;
            }
            if (field_1067_g < 10)
            {
                var word0 = (short)(i << 12 | k << 8 | j);
                for (int l = 0; l < field_1067_g; l++)
                {
                    if (field_1068_f[l] == word0)
                    {
                        return;
                    }
                }

                field_1068_f[field_1067_g++] = word0;
            }
        }