Fix opaque node after_destruct override

This commit is contained in:
Jürgen Rühle 2024-11-15 19:48:13 +01:00 committed by cora
parent 5b1e102c8a
commit fd953a04ea

View File

@ -353,7 +353,7 @@ end
minetest.register_on_mods_loaded(function()
for name, ndef in pairs(minetest.registered_nodes) do
local old_construct = ndef.on_construct
local old_destruct = ndef.on_destruct
local old_destruct = ndef.after_destruct
if minetest.get_item_group(name, "opaque") ~= 0 and minetest.get_item_group(name, "solid") ~= 0 then
minetest.override_item(name, {
on_construct = function(pos)