mirror of
https://github.com/minetest-mods/global_exchange.git
synced 2025-01-09 16:10:17 +01:00
Bug fix - revenue incrementing should have been before remaining = 0 rather than after
This commit is contained in:
parent
cc70c125a9
commit
c2ba4eb797
@ -983,6 +983,7 @@ function ex_methods.sell(self, p_name, ex_name, item_name, amount, rate)
|
|||||||
return false, log2_err
|
return false, log2_err
|
||||||
end
|
end
|
||||||
|
|
||||||
|
revenue = revenue + remaining * row.Rate
|
||||||
remaining = 0
|
remaining = 0
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user