From d992742a8a68911df6bc5529a51ee5bab435068f Mon Sep 17 00:00:00 2001 From: arpruss Date: Mon, 13 Jun 2016 16:48:29 -0500 Subject: [PATCH] juice compatibility --- raspberryjammod/init.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/raspberryjammod/init.lua b/raspberryjammod/init.lua index d6a372d..677ef1c 100644 --- a/raspberryjammod/init.lua +++ b/raspberryjammod/init.lua @@ -674,6 +674,10 @@ function handle_command(line) if cmd:sub(1,6) == "world." then return handle_world(cmd:sub(7),args) elseif cmd:sub(1,7) == "player." then + if args[1] == "None" then + -- Compatibility with mcpi library included with RaspberryJuice -- + table.remove(args,1) + end return handle_entity(cmd:sub(8),nil,args) elseif cmd:sub(1,7) == "entity." then local player = tonumber(args[1])