Fix warnings and global vars
parent
5409a382f9
commit
1c0387b898
|
@ -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,4 @@
|
|||
name = mcl_starting_inventory
|
||||
title = mcl_starting_inventory
|
||||
description = Mineclone 2 mod, Give Starting Inventory
|
||||
depends = mcl_core, mcl_tools, mcl_torches
|
||||
|
|
Loading…
Reference in New Issue