Fix it
This commit is contained in:
parent
7cdcd146c1
commit
4489b205dc
@ -14,7 +14,7 @@ minetest.register_on_dieplayer(function(player)
|
||||
print(inventorylist[i])
|
||||
local bnumbeg, bnumend=string.find(inventorylist[i], '" ')
|
||||
local oldvalue=tonumber(string.sub(inventorylist[i], bnumend))
|
||||
oldvalue=math.random(0,(oldvalue/3)-1)
|
||||
oldvalue=math.random(0,(oldvalue/3))
|
||||
local newstring=string.sub(inventorylist[i], 1, bnumend)
|
||||
newstring=(newstring..tostring(oldvalue))
|
||||
if oldvalue == 0 then
|
||||
|
Loading…
x
Reference in New Issue
Block a user