fix dumb mistake regarding anchors

This commit is contained in:
DBotThePony 2024-04-18 18:52:19 +07:00
parent 4fc33b2cb6
commit 432df454e2
Signed by: DBot
GPG Key ID: DCC23B5715498507

View File

@ -256,10 +256,10 @@ data class ObjectOrientation(
}
for (v in obj.get("bgAnchors", JsonArray()))
anchors.add(Anchor(false, vectorsi.fromJsonTree(v), requireTilledAnchors, requireSoilAnchors, anchorMaterial))
anchors.add(Anchor(true, vectorsi.fromJsonTree(v), requireTilledAnchors, requireSoilAnchors, anchorMaterial))
for (v in obj.get("fgAnchors", JsonArray()))
anchors.add(Anchor(true, vectorsi.fromJsonTree(v), requireTilledAnchors, requireSoilAnchors, anchorMaterial))
anchors.add(Anchor(false, vectorsi.fromJsonTree(v), requireTilledAnchors, requireSoilAnchors, anchorMaterial))
val anchorAny = obj["anchorAny"]?.asBoolean ?: false
val directionAffinity = obj["direction"]?.asString?.uppercase()?.let { Direction.valueOf(it) }