remove unused code and fix some nil error
This commit is contained in:
parent
974944704f
commit
48cb3b6085
14
init.lua
14
init.lua
|
@ -42,7 +42,6 @@ minetest.register_on_mods_loaded(function()
|
|||
minetest.display_chat_message("rumble mod loaded. May the rumble be with you!")
|
||||
log = log_and_chat
|
||||
log_mode = "log and chat"
|
||||
chatmode = off
|
||||
end)
|
||||
|
||||
-- step 2 (take damage)
|
||||
|
@ -78,8 +77,15 @@ minetest.register_on_receiving_chat_message(function(message)
|
|||
end
|
||||
end)
|
||||
|
||||
-- step 6 (item use test and node place tests)
|
||||
|
||||
-- step 6 (commands)
|
||||
--minetest.register_on_item_use(function(itemstack, pointed_thing)
|
||||
-- log("itemstack: "..tostring(itemstack))
|
||||
-- log("pointed thing: "..dump(pointed_thing))
|
||||
--end)
|
||||
|
||||
|
||||
-- step 7 (commands)
|
||||
|
||||
-- command 1
|
||||
minetest.register_chatcommand("settings", {
|
||||
|
@ -186,8 +192,8 @@ minetest.register_chatcommand("notifications_off", {
|
|||
-- command 10
|
||||
minetest.register_chatcommand("chat_trigger", {
|
||||
description = "if set, will only trigger notification rumbles for a specific word or name typed after the command",
|
||||
func = function()
|
||||
func = function(text)
|
||||
chat_trigger = text
|
||||
minetest.display_chat_message("notification trigger: "..chat_trigger)
|
||||
minetest.display_chat_message("notification trigger: "..tostring(chat_trigger))
|
||||
end,
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue