Minor fixes
This commit is contained in:
parent
17aebad3a1
commit
eb46b45c9a
|
@ -152,10 +152,10 @@ export class ItemEjectorSystem extends GameSystemWithFilter {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
const realPosition = slot.pos.rotateFastMultipleOf90(staticComp.rotationDegrees);
|
const realPosition = slot.pos.rotateFastMultipleOf90(staticComp.rotation);
|
||||||
const realDirection = Vector.transformDirectionFromMultipleOf90(
|
const realDirection = Vector.transformDirectionFromMultipleOf90(
|
||||||
slot.direction,
|
slot.direction,
|
||||||
staticComp.rotationDegrees
|
staticComp.rotation
|
||||||
);
|
);
|
||||||
const realDirectionVector = enumDirectionToVector[realDirection];
|
const realDirectionVector = enumDirectionToVector[realDirection];
|
||||||
|
|
||||||
|
|
|
@ -77,7 +77,7 @@ export class UndergroundBeltSystem extends GameSystemWithFilter {
|
||||||
const receiverUndergroundComp = contents.components.UndergroundBelt;
|
const receiverUndergroundComp = contents.components.UndergroundBelt;
|
||||||
if (receiverUndergroundComp) {
|
if (receiverUndergroundComp) {
|
||||||
const receiverStaticComp = contents.components.StaticMapEntity;
|
const receiverStaticComp = contents.components.StaticMapEntity;
|
||||||
if (receiverStaticComp.rotationDegrees === targetRotation) {
|
if (receiverStaticComp.rotation === targetRotation) {
|
||||||
if (receiverUndergroundComp.mode === enumUndergroundBeltMode.receiver) {
|
if (receiverUndergroundComp.mode === enumUndergroundBeltMode.receiver) {
|
||||||
// Try to pass over the item to the receiver
|
// Try to pass over the item to the receiver
|
||||||
if (
|
if (
|
||||||
|
|
Loading…
Reference in New Issue