mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2025-01-23 16:30:19 +01:00
Fixed crash with nil values for /orient
This commit is contained in:
parent
60f111e9d5
commit
421c7b8fd0
@ -802,6 +802,10 @@ minetest.register_chatcommand("/orient", {
|
|||||||
worldedit.player_notify(name, count .. " nodes oriented")
|
worldedit.player_notify(name, count .. " nodes oriented")
|
||||||
end,
|
end,
|
||||||
function(name, param)
|
function(name, param)
|
||||||
|
if param == nil then
|
||||||
|
minetest.log("error","No parameters given to /orient WE's command!")
|
||||||
|
return
|
||||||
|
end
|
||||||
local found, _, angle = param:find("^([+-]?%d+)$")
|
local found, _, angle = param:find("^([+-]?%d+)$")
|
||||||
if found == nil then
|
if found == nil then
|
||||||
worldedit.player_notify(name, "invalid usage: " .. param)
|
worldedit.player_notify(name, "invalid usage: " .. param)
|
||||||
|
Loading…
Reference in New Issue
Block a user