Code: Select all
/c game.print(serpent.line(game.player.selected.fluidbox.set_filter(1,{name='lubricant',force=true})))
--true
/c game.print(serpent.line(game.player.selected.fluidbox.get_filter(1)))
--{maximum_temperature = 100, minimum_temperature = 25, name = "lubricant"}
/c game.print(serpent.line(game.player.selected.fluidbox[1]))
--{amount = 200, name = "heavy-oil", temperature = 25.000000000000501}
Expected behavior: The pump should only accept the filtered fluid :D.