Fix luacheck (#71)

This commit is contained in:
Niklp 2022-10-12 12:37:11 +02:00 committed by GitHub
parent 3e6ba27d49
commit b27bb6d26b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -123,7 +123,7 @@ function drawers.drawer_on_dig(pos, node, player)
local i = 1
while i <= j do
local rndpos = drawers.randomize_pos(pos)
if not (i == j) then
if i ~= j then
core.add_item(rndpos, name .. " " .. stack_max)
else
core.add_item(rndpos, name .. " " .. count % stack_max)