Skip to content

Instantly share code, notes, and snippets.

@rubenwardy rubenwardy/unregister.lua Secret
Last active Apr 19, 2017

Embed
What would you like to do?
local old = minetest.register_craftitem
function minetest.register_craftitem(name, def, ...)
-- replace `should_be_unregistered` with specific logic
if not should_be_unregistered then
return old(name, def, ...)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.