1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2025-12-14 02:31:51 +00:00
This commit is contained in:
mse 2020-05-27 18:02:28 -04:00
parent 4cb99383f7
commit 663c7b2a02
2 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,7 @@ export class MetaSorterBuilding extends MetaBuilding {
* @param {GameRoot} root * @param {GameRoot} root
*/ */
getIsUnlocked(root) { getIsUnlocked(root) {
return true;//root.hubGoals.isRewardUnlocked(enumHubGoalRewards.reward_sorter); return true; //root.hubGoals.isRewardUnlocked(enumHubGoalRewards.reward_sorter);
} }
/** /**

View File

@ -123,7 +123,7 @@ export class ItemProcessorSystem extends GameSystemWithFilter {
trackProduction = false; trackProduction = false;
const availableSlots = entity.components.ItemEjector.slots.length - 1; const availableSlots = entity.components.ItemEjector.slots.length - 1;
assert(inputItem instanceof ShapeItem, "Input for sorting is not a shape"); assert(inputItem instanceof ShapeItem, "Input for sorting is not a shape");
console.log(inputItem.serialize) console.log(inputItem.serialize);
if (inputItem.serialize() == "CuCuCuCu") { if (inputItem.serialize() == "CuCuCuCu") {
let nextSlot = processorComp.nextOutputSlot++ % availableSlots; let nextSlot = processorComp.nextOutputSlot++ % availableSlots;
for (let i = 0; i < items.length; ++i) { for (let i = 0; i < items.length; ++i) {