Minor fixes

This commit is contained in:
Tobias Springer 2020-05-10 17:51:54 +02:00
parent 17aebad3a1
commit eb46b45c9a
2 changed files with 3 additions and 3 deletions

View File

@ -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];

View File

@ -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 (