Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Handle invalid //rotate usage gracefully, fixes #150
  • Loading branch information
sfan5 committed Jul 17, 2019
1 parent f28d9b8 commit f589c98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion worldedit_commands/init.lua
Expand Up @@ -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
Expand Down

0 comments on commit f589c98

Please sign in to comment.