Minor code cleanup
This commit is contained in:
parent
7cc597156d
commit
d000db43f6
@ -81,7 +81,7 @@ end
|
||||
|
||||
include("compat_vector")
|
||||
include("compat_issue9043")
|
||||
include("compat_nodemeta")
|
||||
include("compat_issue10127")
|
||||
include("compat_legacyent")
|
||||
|
||||
include("util_misc")
|
||||
|
@ -283,11 +283,6 @@ function nodecore.node_spin_filtered(func)
|
||||
return nodecore.node_spin_custom(unpack(rots))
|
||||
end
|
||||
|
||||
function nodecore.node_change(pos, node, newname)
|
||||
if node.name == newname then return end
|
||||
return minetest.set_node(pos, underride({name = newname}, node))
|
||||
end
|
||||
|
||||
local function scrubkey(s)
|
||||
return string_lower(string_gsub(tostring(s), "%W+", "_"))
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user