You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: common/src/main/kotlin/org/valkyrienskies/clockwork/content/contraptions/phys/bearing/PhysBearingAssembler.kt
//TODO this is dumb but i'm not going to use ShipAssembler cuz it sucks
15
-
//Why does it suck? Mainly this because of this (https://github.com/ValkyrienSkies/Valkyrien-Skies-2/blob/93cc755c6325585ddf3fd90cfd414e8293474ecc/common/src/main/kotlin/org/valkyrienskies/mod/common/assembly/ShipAssembler.kt#L84)
16
-
// it gets worldspace position of the new ship, then transforms it back to shipspace, why???????????????????????
17
-
// doing some math to calculate center is simple and can be easily calculated outside of the function when you need it (and you do need it)
18
-
// you can't get the center pos without knowing what value positionInShip has
var tag = (if (block isICopyableBlock) block.onCopy(level, from, state, be,
29
+
mutableListOf<ServerShip>().also { if (originShip !=null) it.add(originShip) }.also { if (toShip !=null) it.add(toShip) },
30
+
ShipAssembler.SingleItemMap(originShip?.id ?:-1L, centerPositions.first.get(Vector3d()), Vector3d()) //return actual center position only for origin ship
Copy file name to clipboardExpand all lines: common/src/main/kotlin/org/valkyrienskies/clockwork/content/contraptions/phys/bearing/PhysBearingBlockEntity.kt
Copy file name to clipboardExpand all lines: common/src/main/kotlin/org/valkyrienskies/clockwork/content/logistics/gas/generation/coal_burner/CoalBurnerBlock.kt
0 commit comments