mirror of
https://github.com/minetest-mods/craftguide.git
synced 2024-12-01 22:43:43 +01:00
Fix drops
This commit is contained in:
parent
9890d8a669
commit
9a0e36d884
2
init.lua
2
init.lua
@ -621,7 +621,7 @@ local function drop_table(name, drop)
|
|||||||
|
|
||||||
if not dstack:is_empty() and (dname ~= name or
|
if not dstack:is_empty() and (dname ~= name or
|
||||||
(dname == name and dcount > 1)) then
|
(dname == name and dcount > 1)) then
|
||||||
if #di.items == 1 and (not di.rarity or di.rarity <= 1) then
|
if not di.rarity or di.rarity <= 1 then
|
||||||
if drop_sure[dname] then
|
if drop_sure[dname] then
|
||||||
if dcount > drop_sure[dname].output then
|
if dcount > drop_sure[dname].output then
|
||||||
dcount = dcount + drop_sure[dname].output
|
dcount = dcount + drop_sure[dname].output
|
||||||
|
Loading…
Reference in New Issue
Block a user