mirror of
https://github.com/tobspr/shapez.io.git
synced 2024-10-27 20:34:29 +00:00
Remove unnecessary console.log's
This commit is contained in:
parent
ed9f50ba05
commit
436f700606
@ -82,14 +82,11 @@ export class Rectangle {
|
|||||||
this.y = centerY - halfHeight;
|
this.y = centerY - halfHeight;
|
||||||
this.w = halfWidth * 2;
|
this.w = halfWidth * 2;
|
||||||
this.h = halfHeight * 2;
|
this.h = halfHeight * 2;
|
||||||
// console.log("Assigned", this.x, this.y, this.w, this.h);
|
|
||||||
} else {
|
} else {
|
||||||
// console.log("before", this.x, this.y, this.w, this.h);
|
|
||||||
this.setLeft(Math_min(this.x, centerX - halfWidth));
|
this.setLeft(Math_min(this.x, centerX - halfWidth));
|
||||||
this.setRight(Math_max(this.right(), centerX + halfWidth));
|
this.setRight(Math_max(this.right(), centerX + halfWidth));
|
||||||
this.setTop(Math_min(this.y, centerY - halfHeight));
|
this.setTop(Math_min(this.y, centerY - halfHeight));
|
||||||
this.setBottom(Math_max(this.bottom(), centerY + halfHeight));
|
this.setBottom(Math_max(this.bottom(), centerY + halfHeight));
|
||||||
// console.log("Extended", this.x, this.y, this.w, this.h);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -114,7 +114,6 @@ export class MetaUndergroundBeltBuilding extends MetaBuilding {
|
|||||||
// If we encounter an underground receiver on our way which is also faced in our direction, we don't accept that
|
// If we encounter an underground receiver on our way which is also faced in our direction, we don't accept that
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
// console.log("GOT IT! rotation is", rotation, "and target is", staticComp.rotation);
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
rotation: targetRotation,
|
rotation: targetRotation,
|
||||||
|
@ -49,10 +49,6 @@ export class HUDProcessingOverlay extends BaseHUDPart {
|
|||||||
task();
|
task();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// if (name) {
|
|
||||||
// console.warn("QUEUE", name);
|
|
||||||
// }
|
|
||||||
|
|
||||||
task.__name = name;
|
task.__name = name;
|
||||||
this.tasks.push(task);
|
this.tasks.push(task);
|
||||||
}
|
}
|
||||||
|
@ -112,7 +112,6 @@ export class HUDShop extends BaseHUDPart {
|
|||||||
container.appendChild(pinButton);
|
container.appendChild(pinButton);
|
||||||
|
|
||||||
if (this.root.hud.parts.pinnedShapes.isShapePinned(shape)) {
|
if (this.root.hud.parts.pinnedShapes.isShapePinned(shape)) {
|
||||||
console.log("ALREADY PINNED:", shape);
|
|
||||||
pinButton.classList.add("alreadyPinned");
|
pinButton.classList.add("alreadyPinned");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user