Change default mod detect varable name

master
Yiu Man Ho 2020-08-16 16:43:20 +08:00
parent b814f40112
commit 5b103956a2
No known key found for this signature in database
GPG Key ID: 7939838BC85BF618
1 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@
local modname = minetest.get_current_modname()
local path = minetest.get_modpath(modname)
local default = minetest.get_modpath("default")
local default_here = minetest.get_modpath("default")
local function check_protection(pos, name, text)
if minetest.is_protected(pos, name) then
@ -48,7 +48,7 @@ minetest.register_craftitem("pencil_redo:pencil", {
inventory_image = "pencil.png"
})
if default then
if default_here then
minetest.register_craft({
output = "pencil_redo:pencil 4",
recipe = {