Minor fixes

pull/33/head
Tobias Springer 4 years ago
parent 17aebad3a1
commit eb46b45c9a

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

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

Loading…
Cancel
Save