public void Center(RegionSelector selector, Pattern pattern) { Vector3 centerVec = selector.GetCenter(); BlockCoordinates center = new BlockCoordinates((int)centerVec.X, (int)centerVec.Y, (int)centerVec.Z); RegionSelector centerRegion = new RegionSelector(selector.Player); centerRegion.SelectPrimary(center); centerRegion.SelectSecondary(centerVec); SetBlocks(centerRegion.GetSelectedBlocks(), pattern); }
public void Center(RegionSelector selector, Pattern pattern) { Vector3 centerVec = selector.GetCenter(); BlockCoordinates center = new Vector3((float)Math.Truncate(centerVec.X), (float)Math.Truncate(centerVec.Y), (float)Math.Truncate(centerVec.Z)); RegionSelector centerRegion = new RegionSelector(selector.Player); centerRegion.SelectPrimary(center); centerRegion.SelectSecondary(centerVec); SetBlocks(centerRegion.GetSelectedBlocks(), pattern); }