mirror of
https://github.com/tobspr/shapez.io.git
synced 2025-06-06 09:34:05 +00:00
Removed display check because it doesn't work anyways
This commit is contained in:
parent
86d5143264
commit
9ef712c99d
@ -95,13 +95,6 @@ export class HUDWiresOverlay extends BaseHUDPart {
|
||||
let value = null;
|
||||
if (contents.components.Wire) {
|
||||
const network = contents.components.Wire.linkedNetwork;
|
||||
if (network && network.hasValue()) {
|
||||
value = network.currentValue;
|
||||
}
|
||||
} else if (contents.components.Display) {
|
||||
const pinsComp = contents.components.WiredPins;
|
||||
const network = pinsComp.slots[0].linkedNetwork;
|
||||
|
||||
if (network && network.hasValue()) {
|
||||
value = network.currentValue;
|
||||
}
|
||||
@ -131,6 +124,7 @@ export class HUDWiresOverlay extends BaseHUDPart {
|
||||
const effectiveRotation = Math.radians(
|
||||
staticComp.rotation + enumDirectionToAngle[slot.direction]
|
||||
);
|
||||
// -9.1 comes from systems > wired_pins.js > line 207
|
||||
const valueSpritePos = slotPos.add(new Vector(0, -9.1).rotated(effectiveRotation));
|
||||
const length = mouseTilePos.sub(valueSpritePos).length();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user