Thanks! I haven't tested this, but I believe if you comment lines 4573/4574 of script/vehicles.lua everything should work again:
AD.show("state.gun.item == gun", (state and state.gun and state.gun.item and gun) and
util.table.compare(state.gun.item, gun))
should become
-- AD.show("state.gun.item == gun", (state and state.gun and state.gun.item and gun) and
-- util.table.compare(state.gun.item, gun))
This is just logging the result of a comparison. Not sure why this is still in the code, as there is no such comparison following it. It must be ancient because I try to compare tables – but since Factorio 2.0, prototypes, items, entities, etc. are of type userdata
instead of table
.