public Cube(Item item, int plotNumber, CoordF coordF, CoordF rotation, long homeLayoutId = 0, long homeId = 0) { Item = item; PlotNumber = plotNumber; CoordF = coordF; Rotation = rotation; HomeId = homeId; LayoutUid = homeLayoutId; if (item.Id == 50400158) // Portal cube { PortalSettings = new CubePortalSettings(coordF.ToByte()); } Uid = DatabaseManager.Cubes.Insert(this); }