Merge remote-tracking branch 'origin/master'

This commit is contained in:
Anuken
2023-06-16 17:03:46 -04:00
6 changed files with 27 additions and 13 deletions

View File

@@ -1343,9 +1343,14 @@ public class Block extends UnlockableContent implements Senseable{
packer.add(PageType.editor, name + "-icon-editor", editorBase);
}
public int planRotation(int rot){
if(!rotate) return 0;
return rot;
}
public void flipRotation(BuildPlan req, boolean x){
if((x == (req.rotation % 2 == 0)) != invertFlip){
req.rotation = Mathf.mod(req.rotation + 2, 4);
req.rotation = planRotation(Mathf.mod(req.rotation + 2, 4));
}
}