Fixed charger detection; from https://github.com/Zeg9/minetest-ufos/pull/2