master
Robin Kuck 2012-01-07 00:13:26 +01:00
parent 7cdcd146c1
commit 4489b205dc
1 changed files with 1 additions and 1 deletions

View File

@ -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