diff --git a/Source/Building_Refrigerator.cs b/Source/Building_Refrigerator.cs index 9399381..4919223 100644 --- a/Source/Building_Refrigerator.cs +++ b/Source/Building_Refrigerator.cs @@ -53,19 +53,14 @@ private void CreateFixedStorageSettings() { this.fixedStorageSettings = new StorageSettings(); this.fixedStorageSettings.CopyFrom(this.def.building.fixedStorageSettings); - /*foreach (ThingDef td in DefDatabase.AllDefs) + foreach (ThingDef td in DefDatabase.AllDefs) { - if (td.defName.EqualsIgnoreCase("beer")) - //td.defName.EqualsIgnoreCase("eggchickenfertilized") || - //td.HasComp(typeof(CompRottable))) + if (td.HasComp(typeof(CompRottable)) && + !this.fixedStorageSettings.filter.Allows(td)) { this.fixedStorageSettings.filter.SetAllow(td, true); } - /*else if (td.CanEverDeteriorate == true) - { - this.fixedStorageSettings.filter.SetAllow(td, false); - }* / - }*/ + } } public new StorageSettings GetParentStoreSettings()