mirror of
https://github.com/minetest-mods/drawers.git
synced 2024-11-25 16:13:45 +01:00
fix common luacheck errors
This commit is contained in:
parent
fa8095c6a9
commit
dccb164133
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user