From c6a56ed4303e775ba2abf268975d6bfdc557722e Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Tue, 23 Jan 2018 23:48:26 +0100 Subject: [PATCH] Simplify clear command --- mods/MISC/mcl_commands/init.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mods/MISC/mcl_commands/init.lua b/mods/MISC/mcl_commands/init.lua index 24373e37..aa3d78d7 100644 --- a/mods/MISC/mcl_commands/init.lua +++ b/mods/MISC/mcl_commands/init.lua @@ -8,6 +8,9 @@ else end local function handle_clear_command(giver, receiver) + if receiver == "" then + receiver = giver + end local receiverref = minetest.get_player_by_name(receiver) if receiverref == nil then return false, S("Player @1 does not exist.", receiver)