diff --git a/src/js/game/systems/item_ejector.js b/src/js/game/systems/item_ejector.js index ee448dd9..cc5cb82d 100644 --- a/src/js/game/systems/item_ejector.js +++ b/src/js/game/systems/item_ejector.js @@ -152,10 +152,10 @@ export class ItemEjectorSystem extends GameSystemWithFilter { continue; } - const realPosition = slot.pos.rotateFastMultipleOf90(staticComp.rotationDegrees); + const realPosition = slot.pos.rotateFastMultipleOf90(staticComp.rotation); const realDirection = Vector.transformDirectionFromMultipleOf90( slot.direction, - staticComp.rotationDegrees + staticComp.rotation ); const realDirectionVector = enumDirectionToVector[realDirection]; diff --git a/src/js/game/systems/underground_belt.js b/src/js/game/systems/underground_belt.js index c8baec5b..8953b0ae 100644 --- a/src/js/game/systems/underground_belt.js +++ b/src/js/game/systems/underground_belt.js @@ -77,7 +77,7 @@ export class UndergroundBeltSystem extends GameSystemWithFilter { const receiverUndergroundComp = contents.components.UndergroundBelt; if (receiverUndergroundComp) { const receiverStaticComp = contents.components.StaticMapEntity; - if (receiverStaticComp.rotationDegrees === targetRotation) { + if (receiverStaticComp.rotation === targetRotation) { if (receiverUndergroundComp.mode === enumUndergroundBeltMode.receiver) { // Try to pass over the item to the receiver if (