Added debugging to check for my error
This commit is contained in:
parent
a6dff3b0d9
commit
b381393189
|
@ -433,6 +433,7 @@ end
|
||||||
for modname, itemlist in pairs(energy_values) do
|
for modname, itemlist in pairs(energy_values) do
|
||||||
if minetest.get_modpath(modname) then
|
if minetest.get_modpath(modname) then
|
||||||
for itemname, energy_value in pairs(itemlist) do
|
for itemname, energy_value in pairs(itemlist) do
|
||||||
|
minetest.log("Adding energy value ("..energy_value..") for "..modname..":"..itemname)
|
||||||
minetest.override_item(modname..":"..itemname, {
|
minetest.override_item(modname..":"..itemname, {
|
||||||
description = minetest.registered_items[modname..":"..itemname].description.."\nEnergy Value: "..energy_value,
|
description = minetest.registered_items[modname..":"..itemname].description.."\nEnergy Value: "..energy_value,
|
||||||
energy_value = energy_value,
|
energy_value = energy_value,
|
||||||
|
|
Loading…
Reference in New Issue