i keep thinking the corner offsets should be minus
This commit is contained in:
1 parent
29f2744aab
commit
b495c121d4
1 file changed
+6
-6
@@ -74,18 +74,18 @@ namespace CalamityMod.Schematics
|
||||
switch (anchorType)
|
||||
{
|
||||
case PlacementAnchorType.TopRight:
|
||||
cornerX -= width;
|
||||
cornerX += width;
|
||||
break;
|
||||
case PlacementAnchorType.Center:
|
||||
cornerX -= width / 2;
|
||||
cornerY -= height / 2;
|
||||
cornerX += width / 2;
|
||||
cornerY += height / 2;
|
||||
break;
|
||||
case PlacementAnchorType.BottomLeft:
|
||||
cornerY -= height;
|
||||
cornerY += height;
|
||||
break;
|
||||
case PlacementAnchorType.BottomRight:
|
||||
cornerX -= width;
|
||||
cornerY -= height;
|
||||
cornerX += width;
|
||||
cornerY += height;
|
||||
break;
|
||||
case PlacementAnchorType.TopLeft:
|
||||
default:
|
||||
|
||||
Reference in new issue
Block a user