mirror of
https://github.com/minetest-mods/throwing.git
synced 2024-11-15 23:20:22 +01: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:
parent
be9d9753c4
commit
90b85cdb2e
|
@ -1,2 +1,3 @@
|
|||
mesecons?
|
||||
mesecons_button?
|
||||
wielded_light?
|
||||
|
|
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
|
||||
|
|
Loading…
Reference in New Issue
Block a user