mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-22 10:31:06 +01:00
Make node itemstack check in mcl_shields less hacky
This commit is contained in:
parent
f26c34e65f
commit
d5bc0613d8
1 changed files with 1 additions and 1 deletions
|
@ -270,7 +270,7 @@ local function remove_shield_entity(player, i)
|
||||||
end
|
end
|
||||||
|
|
||||||
local function is_node_stack(itemstack)
|
local function is_node_stack(itemstack)
|
||||||
return itemstack:get_definition().drawtype -- only node's definition table contains element "drawtype"
|
return (itemstack:get_definition().type == "node")
|
||||||
end
|
end
|
||||||
|
|
||||||
local function is_rmb_conflicting_node(nodename)
|
local function is_rmb_conflicting_node(nodename)
|
||||||
|
|
Loading…
Reference in a new issue