ThePython10110 / ExchangeClone

Equivalent Exchange/ProjectE for Minetest Game and MineClone2/Mineclonia
https://github.com/ThePython10110/ExchangeClone/wiki
GNU General Public License v3.0
3 stars 3 forks source link

Some strange debug code gets outputted by the server #5

Closed Ranko-Saotome closed 1 year ago

Ranko-Saotome commented 1 year ago

Describe the bug A clear and concise description of what the bug is.

Some strange debug code gets outputted by the server

Expected behavior A clear and concise description of what you expected to happen.

nothing to show up

Game (e.g. Minetest Game) Which game were you playing? Mineclonia 0.91.0 Screenshots If applicable, add screenshots to help explain your problem.

Screenshot from 2023-11-07 19-17-00

Additional context Add any other context about the problem here. steps to reproduce

Start a new world with exchangeclone enabled Don't have any armor and Fall from a distance

corarona commented 1 year ago

I was discussing the bug with Ranko and found that it's in armor.lua:114, also discovered these on the way:

$ grep -nir minetest.log *.lua

armor.lua:114:        minetest.log(dump({damage, reason}))
energy_collector.lua:251:                    minetest.log(inv:room_for_item("main", stack))
energy_collector.lua:254:                    minetest.log("failed")
philosophers_stone.lua:416:                    minetest.log(dump({item_type, name}))
philosophers_stone.lua:424:        minetest.log(dump({phil=phil,fuel=fuel,item_type=item_type,item_count=item_count}))
philosophers_stone.lua:455:                    minetest.log(dump({item_type, name}))
philosophers_stone.lua:463:        minetest.log(dump({phil=phil,fuel=fuel,item_type=item_type,item_count=item_count}))
ThePython10110 commented 1 year ago

Fixed (I fixed it already, but apparently didn't release it correctly).

Only the armor one was actually running; all the other ones are in commented sections of code.