Esempio n. 1
0
 public void SetTileEntity(Coordinates3D coordinates, TileEntity value)
 {
     for (int i = 0; i < TileEntities.Count; i++)
     {
         if (TileEntities[i].Coordinates == coordinates)
         {
             TileEntities[i] = value;
             return;
         }
     }
     TileEntities.Add(value);
 }
Esempio n. 2
0
 public void SetTileEntity(Coordinates3D coordinates, TileEntity value)
 {
     LastAccessed = DateTime.Now;
     IsModified = true;
     for (int i = 0; i < TileEntities.Count; i++)
     {
         if (TileEntities[i].Coordinates == coordinates)
         {
             TileEntities[i] = value;
             return;
         }
     }
     TileEntities.Add(value);
 }