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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user