Remove: converter code

This commit is contained in:
Coder12a
2019-06-28 09:33:39 -05:00
parent 7bd84b4728
commit a4a43aef2d
3 changed files with 0 additions and 63 deletions

View File

@ -14,23 +14,6 @@ end
-- Make default chest the faction chest.
if minetest.registered_nodes["default:chest"] then
minetest.register_lbm({
label = "Replace faction chest with default one.",
name = "factions:replace_factions_chest",
nodenames = {"factions:chest"},
action = function(pos, node)
minetest.swap_node(pos, {name = "default:chest"})
local parcel_faction = factions.get_faction_at(pos)
if parcel_faction then
local meta = minetest.get_meta(pos)
local name = parcel_faction.name
meta:set_string("faction", name)
meta:set_string("infotext", "Faction Chest (owned by faction " ..
name .. ")")
end
end
})
local dc = minetest.registered_nodes["default:chest"]
local def_on_rightclick = dc.on_rightclick