File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed
minerl/herobraine/hero/handlers/agent/actions Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -66,7 +66,15 @@ def from_universal(self, obs) -> str:
6666 self ._previous_metadata = metadata
6767 return result
6868 else :
69- self .logger .warning (f"Unexpected slots_gui_type={ slots_gui_type } , "
70- f"Abandoning processing and simply returning { self ._default } "
71- )
69+ expected_ignore_types = ( # Filter these out to reduce stderr clutter
70+ "class net.minecraft.inventory.ContainerWorkbench" ,
71+ "class net.minecraft.inventory.ContainerFurnace" ,
72+ "class net.minecraft.inventory.ContainerChest" ,
73+ "class net.minecraft.inventory.ContainerMerchant" ,
74+ )
75+
76+ if slots_gui_type not in expected_ignore_types :
77+ self .logger .debug (f"Unexpected slots_gui_type={ slots_gui_type } , "
78+ f"Abandoning processing and simply returning '{ self ._default } '"
79+ )
7280 return self ._default
You can’t perform that action at this time.
0 commit comments