mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-11-28 05:43:43 +01:00
Make node itemstack check in mcl_shields less hacky
This commit is contained in:
parent
f26c34e65f
commit
d5bc0613d8
@ -270,7 +270,7 @@ local function remove_shield_entity(player, i)
|
||||
end
|
||||
|
||||
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
|
||||
|
||||
local function is_rmb_conflicting_node(nodename)
|
||||
|
Loading…
Reference in New Issue
Block a user