summaryrefslogtreecommitdiff
path: root/lua/api.lua
diff options
context:
space:
mode:
authorGabriel Pérez-Cerezo <gabriel@gpcf.eu>2017-12-05 22:52:22 +0100
committerGabriel Pérez-Cerezo <gabriel@gpcf.eu>2017-12-05 22:52:22 +0100
commita74ccca39f50c56cf4a0da8ed709948e675b4ce5 (patch)
treeb4ccfedb26accd676d794ab3a57d082972bddeab /lua/api.lua
parent0f2e840ba6485c705a356225e4d5acb76cffb66d (diff)
parent7d69f7d1a9e81fa76fae93172177e47bc8ac2637 (diff)
Merge branch 'master' of https://github.com/minetest-mods/drawers
Diffstat (limited to 'lua/api.lua')
-rwxr-xr-xlua/api.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/lua/api.lua b/lua/api.lua
index 4eb9e27..740e33e 100755
--- a/lua/api.lua
+++ b/lua/api.lua
@@ -189,6 +189,7 @@ function drawers.drawer_can_insert_object(pos, node, stack, direction)
local drawer_visuals = drawers.drawer_visuals[core.serialize(pos)]
if not drawer_visuals then return false end
+
for _, visual in pairs(drawer_visuals) do
if visual.itemName == "" or (visual.itemName == stack:get_name() and visual.count ~= visual.maxCount) then
return true