by Topywo » Tue Jul 10, 2012 22:27
Try one of the following:
1. Changing true and false (Works in one version, but I don't expect it to work between versions after an upgrade, but you never know)
Search in the init.lua (under games/minetest_game/mods/default) "locked". The third or fourth one will show you this alinea:
local function has_locked_chest_privilege(meta, player)
if player:get_player_name() ~= meta:get_string("owner") then
return false
end
return true
end
Change false in true and true in false
Remove the stuff from the locked chest. Don't forget to change it back
2. Probably didn't work... This is the text in the init.lua from an older (april) version. Maybe copying it and pasting it over the (much larger) new text (starting from the alinea mentioned under 1. and ending where furnace begins) gives you the change to empty the locked chest. Then paste the new text back over the old.
minetest.register_node("default:chest_locked", {
description = "Locked Chest",
tile_images = {"default_chest_top.png", "default_chest_top.png", "default_chest_side.png",
"default_chest_side.png", "default_chest_side.png", "default_chest_lock.png"},
paramtype2 = "facedir",
metadata_name = "locked_chest",
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2},
legacy_facedir_simple = true,
sounds = default.node_sound_wood_defaults(),
})