UMG can be a light source when enabled in mod settings. This works
with wielded_light or similar mods, otherwise it does not matter.
Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
Major changes:
* all code now in init.lua which eliminates need for global functions
and variables
* all item-specific data is now stored within item definition
* item configuration stored in metadata
* double-click mechanics eliminated completely, device settings
available via right-click menu (formspec)
* code reusability by various devices improved dramatically
* flashlight option removed as light level is global item property
and cannot be set independently for each device
Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>