Closed dacmot closed 1 year ago
thanks for reporting that :+1:
i tried to clean up that mess a bit in https://github.com/minetest-mods/3d_armor/pull/115 let me know if that works for you
I'll take a look. Thanks!
As mentioned in the PR, it looks good!
Should not happen anymore since the code was removed in https://github.com/minetest-mods/3d_armor/commit/3660e503122b75c77edc0f048320a11e8dccc174. As always, re-open if needed.
Hi. I'm one of the WhyNot? game maintainers and we've noticed a problem with 3d_armor recently (https://github.com/minetest-whynot/whynot-game/issues/169)
The first player to immediately join a new game (first time only, singleplayer or hosted), the armor tab in the inventory says "Armor not initialized!" Quitting and joining again fixes it, but it's still annoying.
This it not specific to WhyNot. I was able to reproduce it by copying 3d_armor into minetest_game/mods, as well as simply enabling 3d_armor on a new MTG world before joining.
I've tracked it down to the
init_player_armor
function atWhere
minetest.get_gametime()
is probably 0 when you first join a new world.I found a quick workaround by using
minetest.after(1
in init.lua:but given the TODO comment, I thought maybe this needs some deeper investigation.