Fix spears visuel bug issue nalc/nalc-server-mods#103

This commit is contained in:
Crabman77 2022-07-21 17:58:33 +02:00
parent 3b98245930
commit 6cd70d2759

View File

@ -94,6 +94,10 @@ local update_item = function(pos, node)
pos.z = pos.z + posad.z * 6.5 / 16 pos.z = pos.z + posad.z * 6.5 / 16
elseif node.name == "itemframes:pedestal" then elseif node.name == "itemframes:pedestal" then
pos.y = pos.y + 12 / 16 + 0.33 pos.y = pos.y + 12 / 16 + 0.33
local n = meta:get_string("item")
if string.match(n, "spears:spear_") then
pos.y = pos.y + 0.2
end
end end
tmp.nodename = node.name tmp.nodename = node.name
tmp.texture = ItemStack(meta:get_string("item")):get_name() tmp.texture = ItemStack(meta:get_string("item")):get_name()