File tree 2 files changed +11
-11
lines changed
2 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -71,17 +71,6 @@ worldedit.player_axis = function(name)
71
71
return " z" , dir .z > 0 and 1 or - 1
72
72
end
73
73
74
- local check_region = function (name , param )
75
- -- obtain positions
76
- local pos1 , pos2 = worldedit .pos1 [name ], worldedit .pos2 [name ]
77
- if pos1 == nil or pos2 == nil then
78
- worldedit .player_notify (name , " no region selected" )
79
- return nil
80
- end
81
-
82
- return worldedit .volume (pos1 , pos2 )
83
- end
84
-
85
74
minetest .register_chatcommand (" /about" , {
86
75
params = " " ,
87
76
description = " Get information about the mod" ,
Original file line number Diff line number Diff line change @@ -2,6 +2,17 @@ local safe_region_callback
2
2
local safe_region_name
3
3
local safe_region_param
4
4
5
+ check_region = function (name , param )
6
+ -- obtain positions
7
+ local pos1 , pos2 = worldedit .pos1 [name ], worldedit .pos2 [name ]
8
+ if pos1 == nil or pos2 == nil then
9
+ worldedit .player_notify (name , " no region selected" )
10
+ return nil
11
+ end
12
+
13
+ return worldedit .volume (pos1 , pos2 )
14
+ end
15
+
5
16
-- `callback` is a callback to run when the user confirms
6
17
-- `nodes_needed` is a function accepting `param`, `pos1`, and `pos2` to calculate the number of nodes needed
7
18
safe_region = function (callback , nodes_needed )
You can’t perform that action at this time.
0 commit comments