master
A. Demant 2019-03-21 07:26:03 +01:00
parent aaee33155d
commit 39ce38db99
1 changed files with 2 additions and 0 deletions

View File

@ -25,8 +25,10 @@ for i,v in pairs(price_def) do
kiosk.add_inv(i,v)
end
-- build tree of nodes
for i,v in pairs(minetest.registered_nodes) do
local node_price=0
-- first guess of value by dig mode
if v.groups then
for j,w in pairs({[10]="cracky",[8]="choppy",[6]="snappy",[4]="crumbly",[2]="fleshy"}) do
if v.groups[w] then