public static void PasteLayer(ReactorGridLayer layer) { if (PlannerUI.layerBuffer == null) { return; } if (PlannerUI.layerBuffer.Length != layer.X * layer.Z) { System.Windows.Forms.MessageBox.Show("Buffered layer size doesn't match the layout!"); return; } for (int x = 0; x < layer.X; x++) { for (int z = 0; z < layer.Z; z++) { Point3D position = new Point3D(x + 1, layer.Y, z + 1); SetBlock(PlannerUI.layerBuffer[x, z].Copy(position), position); } } UpdateStats(); Redraw(); }