Make node itemstack check in mcl_shields less hacky

This commit is contained in:
Mikita Wiśniewski 2024-08-09 16:12:15 +07:00 committed by the-real-herowl
parent f26c34e65f
commit d5bc0613d8

View file

@ -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)