Revert "Predict item stack placement client-side"

This reverts commit 8d2a8c089096238fd47ed8f8a7c5d5b82ab79d48.
This commit is contained in:
Aaron Suen 2020-06-28 14:18:20 -04:00
parent 61b7fffd15
commit 4ff829d600

View File

@ -52,17 +52,6 @@ nodecore.register_limited_abm({
end end
}) })
for name, def in pairs(minetest.registered_items) do
if name ~= "" and def.type ~= "node" and def.node_placement_prediction == nil then
minetest.override_item(name, {node_placement_prediction = modname .. ":stack"})
end
end
nodecore.register_on_register_item(function(_, def)
if def.type ~= "node" and def.node_placement_prediction == nil then
def.node_placement_prediction = modname .. ":stack"
end
end)
function minetest.item_place(itemstack, placer, pointed_thing, param2) function minetest.item_place(itemstack, placer, pointed_thing, param2)
if not nodecore.interact(placer) then return end if not nodecore.interact(placer) then return end
if pointed_thing.type == "node" and placer and if pointed_thing.type == "node" and placer and