{"action":"created","issue":{"url":"https://api.github.com/repos/stanhebben/MineTweaker3/issues/259","labels_url":"https://api.github.com/repos/stanhebben/MineTweaker3/issues/259/labels{/name}","comments_url":"https://api.github.com/repos/stanhebben/MineTweaker3/issues/259/comments","events_url":"https://api.github.com/repos/stanhebben/MineTweaker3/issues/259/events","html_url":"https://github.com/stanhebben/MineTweaker3/issues/259","id":110149737,"number":259,"title":"ItemStack for loop not running on startup","user":{"login":"jdinkel","id":413080,"avatar_url":"https://avatars.githubusercontent.com/u/413080?v=3","gravatar_id":"","url":"https://api.github.com/users/jdinkel","html_url":"https://github.com/jdinkel","followers_url":"https://api.github.com/users/jdinkel/followers","following_url":"https://api.github.com/users/jdinkel/following{/other_user}","gists_url":"https://api.github.com/users/jdinkel/gists{/gist_id}","starred_url":"https://api.github.com/users/jdinkel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdinkel/subscriptions","organizations_url":"https://api.github.com/users/jdinkel/orgs","repos_url":"https://api.github.com/users/jdinkel/repos","events_url":"https://api.github.com/users/jdinkel/events{/privacy}","received_events_url":"https://api.github.com/users/jdinkel/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-10-07T04:21:11Z","updated_at":"2016-02-02T13:36:17Z","closed_at":"2016-02-02T09:51:12Z","body":"Minetweaker 3.0.10B for MineCraft 1.7.10, Forge 1448\r\n\r\nMy intention is to remove and hide most IndustrialCraft recipes.\r\n\r\n```\r\nimport mods.nei.NEI;\r\nimport minetweaker.item.IItemStack;\r\n\r\nvar ic2Remove = [<IC2:blockAlloy>, <IC2:blockAlloyGlass>, <IC2:blockBarrel>, <IC2:blockBasalt>, <IC2:blockCable>, <IC2:blockChargepad>, <IC2:blockCrop>, <IC2:blockDoorAlloy>, <IC2:blockElectric>, <IC2:blockFenceIron>, <IC2:blockFoam>, <IC2:blockGenerator>, <IC2:blockHeatGenerator>, <IC2:blockKineticGenerator>, <IC2:blockLuminator>, <IC2:blockLuminatorDark>, <IC2:blockMachine>, <IC2:blockMachine2:*>, <IC2:blockMachine3:*>, <IC2:blockMetal>, <IC2:blockMiningPipe>, <IC2:blockMiningTip>, <IC2:blockOreCopper>, <IC2:blockOreLead>, <IC2:blockOreTin>, <IC2:blockOreUran>, <IC2:blockPersonal>, <IC2:blockReactorAccessHatch>, <IC2:blockReactorChamber>, <IC2:blockReactorFluidPort>, <IC2:blockReactorRedstonePort>, <IC2:blockReinforcedFoam>, <IC2:blockRubLeaves>, <IC2:blockRubSapling>, <IC2:blockRubWood>, <IC2:blockWall>, <IC2:blockreactorvessel>, <IC2:fluidBiogas>, <IC2:fluidBiomass>, <IC2:fluidConstructionFoam>, <IC2:fluidCoolant>, <IC2:fluidDistilledWater>, <IC2:fluidHotCoolant>, <IC2:fluidPahoehoeLava>, <IC2:fluidSteam>, <IC2:fluidSuperheatedSteam>, <IC2:fluidUuMatter>, <IC2:itemAdvBat>, <IC2:itemAdvIronBlockCuttingBlade>, <IC2:itemArmorAdvBatpack>, <IC2:itemArmorAlloyChestplate>, <IC2:itemArmorBatpack>, <IC2:itemArmorBronzeBoots>, <IC2:itemArmorBronzeChestplate>, <IC2:itemArmorBronzeHelmet>, <IC2:itemArmorBronzeLegs>, <IC2:itemArmorCFPack>, <IC2:itemArmorEnergypack>, <IC2:itemArmorHazmatChestplate>, <IC2:itemArmorHazmatHelmet>, <IC2:itemArmorHazmatLeggings>, <IC2:itemArmorJetpack>, <IC2:itemArmorJetpackElectric>, <IC2:itemArmorNanoBoots>, <IC2:itemArmorNanoChestplate>, <IC2:itemArmorNanoHelmet>, <IC2:itemArmorNanoLegs>, <IC2:itemArmorQuantumBoots>, <IC2:itemArmorQuantumChestplate>, <IC2:itemArmorQuantumHelmet>, <IC2:itemArmorQuantumLegs>, <IC2:itemArmorRubBoots>, <IC2:itemBarrel>, <IC2:itemBatChargeAdv>, <IC2:itemBatChargeCrystal>, <IC2:itemBatChargeLamaCrystal>, <IC2:itemBatChargeRE>, <IC2:itemBatCrystal>, <IC2:itemBatLamaCrystal>, <IC2:itemBatRE>, <IC2:itemBatREDischarged>, <IC2:itemBatSU>, <IC2:itemBiochaff>, <IC2:itemCable>, <IC2:itemCasing>, <IC2:itemCellEmpty>, <IC2:itemCellHydrant>, <IC2:itemCofeeBeans>, <IC2:itemCofeePowder>, <IC2:itemCoin>, <IC2:itemContainmentbox>, <IC2:itemCropSeed>, <IC2:itemCropnalyzer>, <IC2:itemCrushedOre>, <IC2:itemDebug>, <IC2:itemDensePlates>, <IC2:itemDiamondBlockCuttingBlade>, <IC2:itemDoorAlloy>, <IC2:itemDust>, <IC2:itemDust2>, <IC2:itemDustSmall>, <IC2:itemFertilizer>, <IC2:itemFluidCell>, <IC2:itemFoamSprayer>, <IC2:itemFreq>, <IC2:itemFuelPlantBall>, <IC2:itemFuelRod>, <IC2:itemGrinPowder>, <IC2:itemHops>, <IC2:itemIngot>, <IC2:itemIronBlockCuttingBlade>, <IC2:itemLathingTool>, <IC2:itemMOX>, <IC2:itemMugBooze>, <IC2:itemMugCoffee>, <IC2:itemMugEmpty>, <IC2:itemNanoSaber>, <IC2:itemNightvisionGoggles>, <IC2:itemOreIridium>, <IC2:itemPartAlloy>, <IC2:itemPartCFPowder>, <IC2:itemPartCarbonFibre>, <IC2:itemPartCarbonMesh>, <IC2:itemPartCarbonPlate>, <IC2:itemPartCircuit>, <IC2:itemPartCircuitAdv>, <IC2:itemPartCoalBall>, <IC2:itemPartCoalBlock>, <IC2:itemPartCoalChunk>, <IC2:itemPartIndustrialDiamond>, <IC2:itemPartIridium>, <IC2:itemPlates>, <IC2:itemPlutonium>, <IC2:itemPlutoniumSmall>, <IC2:itemPurifiedCrushedOre>, <IC2:itemRTGPellet>, <IC2:itemRecipePart>, <IC2:itemRubber>, <IC2:itemScanner>, <IC2:itemScannerAdv>, <IC2:itemScrap>, <IC2:itemScrapbox>, <IC2:itemSlag>, <IC2:itemSolarHelmet>, <IC2:itemStaticBoots>, <IC2:itemSteamTurbine>, <IC2:itemSteamTurbineBlade>, <IC2:itemTFBP>, <IC2:itemTFBPChilling>, <IC2:itemTFBPCultivation>, <IC2:itemTFBPDesertification>, <IC2:itemTFBPFlatification>, <IC2:itemTFBPIrrigation>, <IC2:itemTFBPMushroom>, <IC2:itemTerraWart>, <IC2:itemTinCan>, <IC2:itemTinCanFilled>, <IC2:itemToolBronzeAxe>, <IC2:itemToolBronzeHoe>, <IC2:itemToolBronzePickaxe>, <IC2:itemToolBronzeSpade>, <IC2:itemToolBronzeSword>, <IC2:itemToolChainsaw>, <IC2:itemToolCutter>, <IC2:itemToolDDrill>, <IC2:itemToolDrill>, <IC2:itemToolForgeHammer>, <IC2:itemToolHoe>, <IC2:itemToolIridiumDrill>, <IC2:itemToolMEter>, <IC2:itemToolMiningLaser>, <IC2:itemToolPainter>, <IC2:itemToolPainterBlack>, <IC2:itemToolPainterBlue>, <IC2:itemToolPainterBrown>, <IC2:itemToolPainterCloud>, <IC2:itemToolPainterCyan>, <IC2:itemToolPainterDarkGrey>, <IC2:itemToolPainterGreen>, <IC2:itemToolPainterLightGrey>, <IC2:itemToolPainterLime>, <IC2:itemToolPainterMagenta>, <IC2:itemToolPainterOrange>, <IC2:itemToolPainterPink>, <IC2:itemToolPainterPurple>, <IC2:itemToolPainterRed>, <IC2:itemToolPainterWhite>, <IC2:itemToolPainterYellow>, <IC2:itemToolWrench>, <IC2:itemToolWrenchElectric>, <IC2:itemToolbox>, <IC2:itemTreetapElectric>, <IC2:itemTritiumCell>, <IC2:itemTurningBlanks>, <IC2:itemTurningBlanksWood>, <IC2:itemUran>, <IC2:itemUran235>, <IC2:itemUran235small>, <IC2:itemUran238>, <IC2:itemWeed>, <IC2:itemWeedEx>, <IC2:itemWeedingTrowel>, <IC2:itemcrystalmemory>, <IC2:itemironrotor>, <IC2:itemsteelrotor>, <IC2:itemupgradekit>, <IC2:itemwcarbonrotor>, <IC2:itemwoodrotor>, <IC2:obscurator>, <IC2:plasmaLauncher>, <IC2:reactorCondensator>, <IC2:reactorCondensatorLap>, <IC2:reactorCoolantSimple>, <IC2:reactorCoolantSix>, <IC2:reactorCoolantTriple>, <IC2:reactorHeatSwitch>, <IC2:reactorHeatSwitchCore>, <IC2:reactorHeatSwitchDiamond>, <IC2:reactorHeatSwitchSpread>, <IC2:reactorLithiumCell>, <IC2:reactorMOXDual>, <IC2:reactorMOXDualdepleted>, <IC2:reactorMOXQuad>, <IC2:reactorMOXQuaddepleted>, <IC2:reactorMOXSimple>, <IC2:reactorMOXSimpledepleted>, <IC2:reactorPlating>, <IC2:reactorPlatingExplosive>, <IC2:reactorPlatingHeat>, <IC2:reactorReflector>, <IC2:reactorReflectorThick>, <IC2:reactorUraniumDual>, <IC2:reactorUraniumDualdepleted>, <IC2:reactorUraniumQuad>, <IC2:reactorUraniumQuaddepleted>, <IC2:reactorUraniumSimple>, <IC2:reactorUraniumSimpledepleted>, <IC2:reactorVent>, <IC2:reactorVentCore>, <IC2:reactorVentDiamond>, <IC2:reactorVentGold>, <IC2:reactorVentSpread>, <IC2:upgradeModule>, <IC2:windmeter>, <IC2NuclearControl:Item55ReactorCard>, <IC2NuclearControl:ItemEnergyArrayLocationCard>, <IC2NuclearControl:ItemEnergySensorKit>, <IC2NuclearControl:ItemEnergySensorLocationCard>, <IC2NuclearControl:ItemLiquidArrayLocationCard>, <IC2NuclearControl:ItemMultipleSensorKit>, <IC2NuclearControl:ItemMultipleSensorLocationCard>, <IC2NuclearControl:ItemRemoteSensorKit>, <IC2NuclearControl:ItemSensorLocationCard>, <IC2NuclearControl:ItemTextCard>, <IC2NuclearControl:ItemTimeCard>, <IC2NuclearControl:ItemToolDigitalThermometer>, <IC2NuclearControl:ItemToolThermometer>, <IC2NuclearControl:ItemUpgrade>, <IC2NuclearControl:NC-BRinfoFetch>, <IC2NuclearControl:NC-BRreactorCard>, <IC2NuclearControl:NC-BRrfsensorKit>, <IC2NuclearControl:blockNuclearControlLight>, <IC2:itemBoat:3>] as IItemStack[];\r\n\r\nfor item in ic2Remove {\r\n  recipes.remove(item);\r\n  NEI.hide(item);\r\n}\r\n```\r\n\r\nWhen I start a new or existing world, the recipes are neither removed nor hidden; but running `/mt reload` does hide and remove the recipes.  If I split these out into separate hide/removals instead of in a for loop, then they do run on startup.  There seems to be something wrong with running the for loop on startup."},"comment":{"url":"https://api.github.com/repos/stanhebben/MineTweaker3/issues/comments/178576419","html_url":"https://github.com/stanhebben/MineTweaker3/issues/259#issuecomment-178576419","issue_url":"https://api.github.com/repos/stanhebben/MineTweaker3/issues/259","id":178576419,"user":{"login":"jdinkel","id":413080,"avatar_url":"https://avatars.githubusercontent.com/u/413080?v=3","gravatar_id":"","url":"https://api.github.com/users/jdinkel","html_url":"https://github.com/jdinkel","followers_url":"https://api.github.com/users/jdinkel/followers","following_url":"https://api.github.com/users/jdinkel/following{/other_user}","gists_url":"https://api.github.com/users/jdinkel/gists{/gist_id}","starred_url":"https://api.github.com/users/jdinkel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdinkel/subscriptions","organizations_url":"https://api.github.com/users/jdinkel/orgs","repos_url":"https://api.github.com/users/jdinkel/repos","events_url":"https://api.github.com/users/jdinkel/events{/privacy}","received_events_url":"https://api.github.com/users/jdinkel/received_events","type":"User","site_admin":false},"created_at":"2016-02-02T13:36:17Z","updated_at":"2016-02-02T13:36:17Z","body":"@jaredlll08 For 1.8 and beyond, you should consider just switching to JEI, anyway (well I'm basing that on what Direworlf20 says anyway)."}}