1
0
Fork 0

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

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

View File

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

View File

@ -317,7 +317,7 @@ minetest.register_node("mcl_mobspawners:spawner", {
if obj then if obj then
obj:remove() obj:remove()
end 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)) mcl_experience.throw_xp(pos, math.random(15, 43))
end end
end, end,

View File

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