Revert "compatibilit with minetest 0.4.17 and 5.0.0 for player object bug"

This reverts commit 8091b1ebc0.
This commit is contained in:
bri cassa 2022-06-29 20:59:30 +02:00
parent adbbe639d7
commit 79cf7737c1

View File

@ -73,27 +73,21 @@ armor_monoid.monoid = player_monoids.make_monoid({
join_handled[player:get_player_name()] = true
if player then
player:set_armor_groups(final)
end
end,
})
-- If the monoid has not fired yet (or won't fire)
minetest.register_on_joinplayer(function(player)
if player then
if not join_handled[player:get_player_name()] then
player:set_armor_groups(armor_groups)
end
end
end)
minetest.register_on_leaveplayer(function(player)
if player then
join_handled[player:get_player_name()] = nil
end
end)