mirror of
https://github.com/minetest-mods/throwing.git
synced 2025-01-09 09:40:26 +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?
|
||||||
mesecons_button?
|
mesecons_button?
|
||||||
|
wielded_light?
|
||||||
|
4
init.lua
4
init.lua
@ -195,6 +195,10 @@ local function arrow_step(self, dtime)
|
|||||||
end
|
end
|
||||||
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
|
self.last_pos = pos -- Used by the build arrow
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user