Fix it
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…
Reference in New Issue