fix common luacheck errors

This commit is contained in:
BuckarooBanzay 2020-02-13 13:12:01 +01:00 committed by LNJ
parent fa8095c6a9
commit dccb164133
3 changed files with 5 additions and 5 deletions

@ -199,7 +199,7 @@ function drawers.drawer_insert_object(pos, node, stack, direction)
end
function drawers.drawer_can_insert_object(pos, node, stack, direction)
local drawer_visuals = drawers.drawer_visuals[core.serialize(pos)]
local drawer_visuals = drawers.drawer_visuals[core.serialize(pos)]
if not drawer_visuals then return false end

@ -100,7 +100,7 @@ core.register_entity("drawers:visual", {
self.meta = core.get_meta(self.drawer_pos)
-- collisionbox
local node = core.get_node(self.drawer_pos)
node = core.get_node(self.drawer_pos)
local colbox
if self.drawerType ~= 2 then
if node.param2 == 1 or node.param2 == 3 then
@ -231,7 +231,7 @@ core.register_entity("drawers:visual", {
return
end
stack = self:take_items(add_stack)
local stack = self:take_items(add_stack)
if stack ~= nil then
-- add removed stack to player's inventory
inv:add_item("main", stack)