mirror of
https://github.com/minetest-mods/drawers.git
synced 2024-11-25 16:13:45 +01:00
Fix luacheck (#71)
This commit is contained in:
parent
3e6ba27d49
commit
b27bb6d26b
@ -123,7 +123,7 @@ function drawers.drawer_on_dig(pos, node, player)
|
|||||||
local i = 1
|
local i = 1
|
||||||
while i <= j do
|
while i <= j do
|
||||||
local rndpos = drawers.randomize_pos(pos)
|
local rndpos = drawers.randomize_pos(pos)
|
||||||
if not (i == j) then
|
if i ~= j then
|
||||||
core.add_item(rndpos, name .. " " .. stack_max)
|
core.add_item(rndpos, name .. " " .. stack_max)
|
||||||
else
|
else
|
||||||
core.add_item(rndpos, name .. " " .. count % stack_max)
|
core.add_item(rndpos, name .. " " .. count % stack_max)
|
||||||
|
Loading…
Reference in New Issue
Block a user