Remove /torchlite cheat, superseded by /nckfa

This commit is contained in:
Aaron Suen 2020-06-30 19:30:30 -04:00
parent 2bf8c4ee3c
commit 338dc72e3b
2 changed files with 0 additions and 24 deletions

View File

@ -1,23 +0,0 @@
-- LUALOCALS < ---------------------------------------------------------
local ItemStack, minetest, nodecore
= ItemStack, minetest, nodecore
-- LUALOCALS > ---------------------------------------------------------
local modname = minetest.get_current_modname()
local cheatdesc = "Cheat Torch"
local cheattrans = nodecore.translate(cheatdesc)
minetest.register_chatcommand("torchlite", {
description = "Create long-lasting " .. cheattrans,
privs = {["give"] = true},
func = function(pname)
local player = minetest.get_player_by_name(pname)
if not player then return end
local stack = ItemStack(modname .. ":torch_lit")
local meta = stack:get_meta()
meta:set_string("description", cheatdesc)
meta:set_float("expire", 1e300)
player:get_inventory():add_item("main", stack)
end
})

View File

@ -7,4 +7,3 @@ nodecore.amcoremod()
include("node")
include("abm")
include("cmd")