remove sha1 unlocking for minetest cape

This commit is contained in:
chmodsayshello 2023-12-10 16:12:18 +01:00
parent d3881fc1d1
commit aeccc94687
2 changed files with 2 additions and 13 deletions

View File

@ -503,11 +503,6 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
chatbuttonused = true
local message = custom_sleep_message or S("Hey! Would you guys mind sleeping?")
minetest.chat_send_all(minetest.format_chat_message(player:get_player_name(), message))
if (custom_sleep_message and custom_sleep_message:len() == 5 and minetest.sha1(custom_sleep_message) == "cd6f53e544ed020fb8ff9dae3f2637eb6e0aae43") then
-- crack this hash for a special minetest cape, no salt or pepper
-- rules for all characters: acii value between 33 and 38 or 48 and 57 or 65 and 80
player:get_meta():set_int("mcl_skins:has_seeecret_cape", 1) -- "seeecret" so just using grep on the 'normal' word won't work
end
end
return
end

View File

@ -311,7 +311,6 @@ function mcl_skins.show_formspec(player, active_tab, page_num)
"button[7.5,5.2;2,0.8;template2;" .. S("Select") .. "]"
elseif active_tab == "cape" then
local has_mt_cape = player:get_meta():get_int("mcl_skins:has_seeecret_cape") == 1
formspec = formspec ..
"label[6,3;" .. S("(None)") .. "]"..
"button[5.5,4.2;2,0.8;nocape;" .. S("Select") .. "]"..
@ -319,7 +318,8 @@ function mcl_skins.show_formspec(player, active_tab, page_num)
"image[9,2;1,2;slimecape.png]"..
"button[8.5,4.2;2,0.8;slimecape;" .. S("Select") .. "]"..
"image[6,7;1,2;mtcape.png]" .. -- show image ingame so there is another hint that this cape exists
"image[6,7;1,2;mtcape.png]" ..
"button[5.5,9.2;2,0.8;mtcape;" .. S("Select") .. "]" ..
"image[9,7;1,2;ghastcape.png]" ..
"button[8.5,9.2;2,0.8;ghastcape;" .. S("Select") .. "]"..
@ -327,12 +327,6 @@ function mcl_skins.show_formspec(player, active_tab, page_num)
"image[12,7;1,2;mclcape.png]" ..
"button[11.5,9.2;2,0.8;mclcape;" .. S("Select") .. "]"
if has_mt_cape then
formspec = formspec ..
--"image[9,2;1,2;mtcape.png]"
"button[5.5,9.2;2,0.8;mtcape;" .. S("Select") .. "]"
end
elseif mcl_skins[active_tab] then
formspec = formspec ..
"style_type[button;bgcolor=#00000000]"