Remove deprecated minetest.player.get_color_int

This commit is contained in:
Lars Mueller 2022-09-17 18:47:03 +02:00
parent 2bbcbee1c4
commit e0a6406566

@ -56,15 +56,6 @@ function get_color_table(player)
return sender_color or { r = 255, g = 255, b = 255 } return sender_color or { r = 255, g = 255, b = 255 }
end end
--! deprecated in favor of modlib.minetest.colorspec
function get_color_int(player)
local sender_color = player:get_properties().nametag_color
if sender_color then
sender_color = sender_color.b + sender_color.g * 0x100 + sender_color.r * 0x10000
else sender_color = 0xFFFFFF end
return sender_color
end
minetest.register_on_joinplayer(function(player) minetest.register_on_joinplayer(function(player)
local playername = player:get_player_name() local playername = player:get_player_name()
create_player_data(playername) create_player_data(playername)