From eb46b45c9ae672bb880f9253c29d33ac32d2a07c Mon Sep 17 00:00:00 2001 From: Tobias Springer Date: Sun, 10 May 2020 17:51:54 +0200 Subject: [PATCH] Minor fixes --- src/js/game/systems/item_ejector.js | 4 ++-- src/js/game/systems/underground_belt.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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 (