1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2025-06-13 13:04:03 +00:00

Use hasValue() instead

should have explored properties before doing anything (looks like it was added after i made the change)
This commit is contained in:
dengr1065 2020-09-23 19:24:28 +03:00 committed by GitHub
parent 00d1130a9f
commit 2eba8f79e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -111,7 +111,7 @@ export class DisplaySystem extends GameSystemWithFilter {
const pinsComp = entity.components.WiredPins;
const network = pinsComp.slots[0].linkedNetwork;
if (!network || !network.currentValue) {
if (!network || !network.hasValue()) {
continue;
}