mirror of
https://github.com/luanti-org/minetest_game.git
synced 2025-07-13 18:01:57 -04:00
Add wield light for torch and lava
This commit is contained in:
parent
c4bb058421
commit
29ea587d39
2 changed files with 5 additions and 0 deletions
|
@ -33,9 +33,11 @@ function bucket.register_liquid(source, flowing, itemname, inventory_image, name
|
|||
bucket.liquids[flowing] = bucket.liquids[source]
|
||||
|
||||
if itemname ~= nil then
|
||||
nodedef = minetest.registered_nodes[source] or {}
|
||||
minetest.register_craftitem(itemname, {
|
||||
description = name,
|
||||
inventory_image = inventory_image,
|
||||
wield_light = nodedef.wield_light,
|
||||
stack_max = 1,
|
||||
liquids_pointable = true,
|
||||
groups = {not_in_creative_inventory=1},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue