forked from Mineclonia/Mineclonia
Fix some global variable warnings
This commit is contained in:
parent
a589cbc17a
commit
823c20bd1b
|
@ -267,7 +267,7 @@ function mcl_util.generate_on_place_plant_function(condition)
|
||||||
|
|
||||||
if success then
|
if success then
|
||||||
if idef.sounds and idef.sounds.place then
|
if idef.sounds and idef.sounds.place then
|
||||||
minetest.sound_play(idef.sounds.place, {pos=above, gain=1})
|
minetest.sound_play(idef.sounds.place, {pos=pointed_thing.above, gain=1})
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
itemstack = new_itemstack
|
itemstack = new_itemstack
|
||||||
|
|
|
@ -141,7 +141,7 @@ minetest.register_on_joinplayer(function(player)
|
||||||
set_inventory(player, true)
|
set_inventory(player, true)
|
||||||
end
|
end
|
||||||
armor:set_player_armor(player)
|
armor:set_player_armor(player)
|
||||||
update_inventory_original(self, player)
|
armor:update_inventory(player)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- In Creative Mode, the initial inventory setup is handled in creative.lua
|
-- In Creative Mode, the initial inventory setup is handled in creative.lua
|
||||||
|
|
|
@ -55,9 +55,9 @@ piston_get_direction = function (dir, node)
|
||||||
end
|
end
|
||||||
|
|
||||||
local piston_remove_pusher = function (pos, node)
|
local piston_remove_pusher = function (pos, node)
|
||||||
pistonspec = minetest.registered_nodes[node.name].mesecons_piston
|
local pistonspec = minetest.registered_nodes[node.name].mesecons_piston
|
||||||
|
|
||||||
dir = piston_get_direction(pistonspec.dir, node)
|
local dir = piston_get_direction(pistonspec.dir, node)
|
||||||
local pusherpos = mesecon:addPosRule(pos, dir)
|
local pusherpos = mesecon:addPosRule(pos, dir)
|
||||||
local pushername = minetest.get_node(pusherpos).name
|
local pushername = minetest.get_node(pusherpos).name
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,7 @@ local velocities = {
|
||||||
|
|
||||||
mcl_throwing.throw = function(throw_item, pos, dir, velocity)
|
mcl_throwing.throw = function(throw_item, pos, dir, velocity)
|
||||||
if velocity == nil then
|
if velocity == nil then
|
||||||
velocity = velocities[entity_name]
|
velocity = velocities[throw_item]
|
||||||
end
|
end
|
||||||
if velocity == nil then
|
if velocity == nil then
|
||||||
velocity = 22
|
velocity = 22
|
||||||
|
|
Loading…
Reference in New Issue