From f589c988b16d6f0113caf05bcc877af09e11ca47 Mon Sep 17 00:00:00 2001 From: sfan5 Date: Wed, 17 Jul 2019 02:35:57 +0200 Subject: [PATCH] Handle invalid //rotate usage gracefully, fixes #150 --- worldedit_commands/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worldedit_commands/init.lua b/worldedit_commands/init.lua index 7db138b..70b5deb 100644 --- a/worldedit_commands/init.lua +++ b/worldedit_commands/init.lua @@ -982,7 +982,7 @@ minetest.register_chatcommand("/rotate", { worldedit.player_notify(name, "invalid usage: " .. param) return nil end - if angle % 90 ~= 0 then + if angle % 90 ~= 0 or angle % 360 == 0 then worldedit.player_notify(name, "invalid usage: angle must be multiple of 90") return nil end