diff --git a/minerl/herobraine/hero/handlers/agent/actions/equip.py b/minerl/herobraine/hero/handlers/agent/actions/equip.py index 796cf6451..8bd54581b 100644 --- a/minerl/herobraine/hero/handlers/agent/actions/equip.py +++ b/minerl/herobraine/hero/handlers/agent/actions/equip.py @@ -66,7 +66,15 @@ def from_universal(self, obs) -> str: self._previous_metadata = metadata return result else: - self.logger.warning(f"Unexpected slots_gui_type={slots_gui_type}, " - f"Abandoning processing and simply returning {self._default}" - ) + expected_ignore_types = ( # Filter these out to reduce stderr clutter + "class net.minecraft.inventory.ContainerWorkbench", + "class net.minecraft.inventory.ContainerFurnace", + "class net.minecraft.inventory.ContainerChest", + "class net.minecraft.inventory.ContainerMerchant", + ) + + if slots_gui_type not in expected_ignore_types: + self.logger.debug(f"Unexpected slots_gui_type={slots_gui_type}, " + f"Abandoning processing and simply returning '{self._default}'" + ) return self._default