mirror of
https://github.com/tobspr/shapez.io.git
synced 2026-02-12 10:59:23 +00:00
Fix to producer
Current hiddenBuildings array doesn't allow you to have producer if you are dev on regular gamemode. But with adding this little check, we can fix it :)
This commit is contained in:
parent
a1c6a99df0
commit
c1c478e8d6
@ -585,12 +585,10 @@ export class RegularGameMode extends GameMode {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/** @type {(typeof MetaBuilding)[]} */
|
/** @type {(typeof MetaBuilding)[]} */
|
||||||
this.hiddenBuildings = [
|
this.hiddenBuildings = [MetaConstantProducerBuilding, MetaGoalAcceptorBuilding, MetaBlockBuilding];
|
||||||
MetaConstantProducerBuilding,
|
if (!G_IS_DEV) {
|
||||||
MetaGoalAcceptorBuilding,
|
this.hiddenBuildings.push(MetaItemProducerBuilding);
|
||||||
MetaBlockBuilding,
|
}
|
||||||
MetaItemProducerBuilding,
|
|
||||||
];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user