Added debugging to check for my error

This commit is contained in:
ThePython 2023-03-27 10:16:40 -07:00
parent a6dff3b0d9
commit b381393189
1 changed files with 1 additions and 0 deletions

View File

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