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); }
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); }