mirror of
https://github.com/minetest-mods/throwing.git
synced 2025-07-05 01:40:27 +02:00
support for wielded_light shining
supports also wielded_light.register_item_light("throwing:arrow", light_level) to set the light level
This commit is contained in:
committed by
Pierre-Adrien Langrognet
parent
be9d9753c4
commit
90b85cdb2e
4
init.lua
4
init.lua
@ -195,6 +195,10 @@ local function arrow_step(self, dtime)
|
||||
end
|
||||
end
|
||||
|
||||
-- Support for shining items using wielded light
|
||||
if minetest.global_exists("wielded_light") and self.object then
|
||||
wielded_light.update_light_by_item(self.item, self.object:get_pos())
|
||||
end
|
||||
|
||||
self.last_pos = pos -- Used by the build arrow
|
||||
end
|
||||
|
Reference in New Issue
Block a user