mirror of
https://github.com/bancika/diy-layout-creator
synced 2026-11-10 17:22:09 +10:00
fix orientation parsing
This commit is contained in:
@@ -346,7 +346,7 @@ public class OpenJack1_4 extends AbstractMultiPartComponent<String> {
|
||||
@EditableProperty
|
||||
public Integer getAngle() {
|
||||
if (angle == null) {
|
||||
if (orientation != null)
|
||||
if (orientation != null && orientation != Orientation.DEFAULT)
|
||||
angle = Integer.parseInt(orientation.name().replace("_", ""));
|
||||
else
|
||||
angle = 0;
|
||||
|
||||
@@ -389,7 +389,7 @@ public class PilotLampHolder extends AbstractMultiPartComponent<String> {
|
||||
@EditableProperty
|
||||
public Integer getAngle() {
|
||||
if (angle == null) {
|
||||
if (orientation != null)
|
||||
if (orientation != null && orientation != Orientation.DEFAULT)
|
||||
angle = Integer.parseInt(orientation.name().replace("_", ""));
|
||||
else
|
||||
angle = 0;
|
||||
|
||||
Reference in New Issue
Block a user