Fix some global variable warnings

This commit is contained in:
Wuzzy 2017-06-10 17:52:21 +02:00
parent a589cbc17a
commit 823c20bd1b
4 changed files with 5 additions and 5 deletions

View file

@ -55,9 +55,9 @@ piston_get_direction = function (dir, node)
end
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 pushername = minetest.get_node(pusherpos).name

View file

@ -18,7 +18,7 @@ local velocities = {
mcl_throwing.throw = function(throw_item, pos, dir, velocity)
if velocity == nil then
velocity = velocities[entity_name]
velocity = velocities[throw_item]
end
if velocity == nil then
velocity = 22