1
0
Fork 0

Fix warnings and global vars

effects_rewrite
ancientmarinerdev 2023-03-19 23:46:35 +00:00 committed by Gitea
parent 5409a382f9
commit 1c0387b898
3 changed files with 3 additions and 2 deletions

View File

@ -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)

View File

@ -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,

View File

@ -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