1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2026-03-02 03:39:21 +00:00

Fix savegame bugs

This commit is contained in:
tobspr
2021-05-24 16:47:36 +02:00
parent e1e27b4822
commit 65721e0837
14 changed files with 30 additions and 98 deletions

View File

@@ -15,14 +15,12 @@ export class ItemProducerSystem extends GameSystemWithFilter {
update() {
for (let i = 0; i < this.allEntities.length; ++i) {
const entity = this.allEntities[i];
const producerComp = entity.components.ItemProducer;
const ejectorComp = entity.components.ItemEjector;
if (producerComp.isWireless()) {
const pinsComp = entity.components.WiredPins;
if (!pinsComp) {
continue;
}
const pinsComp = entity.components.WiredPins;
const pin = pinsComp.slots[0];
const network = pin.linkedNetwork;