Merge pull request 'Fix warnings and global vars' (#3568) from fix_global_warnings into master

Reviewed-on: https://git.minetest.land/MineClone2/MineClone2/pulls/3568
Reviewed-by: Nicu <kneekoo@noreply.git.minetest.land>
ancientmarinerdev 2023-03-22 01:17:41 +00:00
commit 109bf17723
3 changed files with 3 additions and 3 deletions

@ -24,7 +24,7 @@ end
-- @param oldnode the node table of the removed trunk node.
function mcl_core.update_leaves(pos, oldnode)
local pos1, pos2 = vector.offset(pos, -6, -6, -6), vector.offset(pos, 6, 6, 6)
local lnode
local lnode, lmeta
local leaves = minetest.find_nodes_in_area(pos1, pos2, "group:leaves")
for _, lpos in pairs(leaves) do
lnode = minetest.get_node(lpos)

@ -317,7 +317,7 @@ minetest.register_node("mcl_mobspawners:spawner", {
if obj then
obj:remove()
end
if not minetest.is_creative_enabled(name) then
if not minetest.is_creative_enabled("") then
mcl_experience.throw_xp(pos, math.random(15, 43))
end
end,

@ -1,3 +1,3 @@
title = mcl_starting_inventory
name = mcl_starting_inventory
description = Mineclone 2 mod, Give Starting Inventory
depends = mcl_core, mcl_tools, mcl_torches