Skip to content

Commit 7f58061

Browse files
committedDec 29, 2014
Fix some warnings.
1 parent 4799068 commit 7f58061

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed
 

‎worldedit/serialization.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ worldedit.allocate_with_nodes = function(origin_pos, nodes)
199199
local pos2x, pos2y, pos2z = -huge, -huge, -huge
200200
local origin_x, origin_y, origin_z = origin_pos.x, origin_pos.y, origin_pos.z
201201
for i, entry in ipairs(nodes) do
202-
x, y, z = origin_x + entry.x, origin_y + entry.y, origin_z + entry.z
202+
local x, y, z = origin_x + entry.x, origin_y + entry.y, origin_z + entry.z
203203
if x < pos1x then pos1x = x end
204204
if y < pos1y then pos1y = y end
205205
if z < pos1z then pos1z = z end

‎worldedit_commands/init.lua

+3-3
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ if minetest.place_schematic then
1313
end
1414

1515
dofile(minetest.get_modpath("worldedit_commands") .. "/mark.lua")
16-
dofile(minetest.get_modpath("worldedit_commands") .. "/safe.lua")
16+
dofile(minetest.get_modpath("worldedit_commands") .. "/safe.lua"); safe_region = safe_region or function(callback) return callback end
1717

1818
local get_position = function(name) --position 1 retrieval function for when not using `safe_region`
1919
local pos1 = worldedit.pos1[name]
@@ -828,7 +828,7 @@ minetest.register_chatcommand("/suppress", {
828828
local node = get_node(name, param)
829829
local count = worldedit.suppress(worldedit.pos1[name], worldedit.pos2[name], node)
830830
worldedit.player_notify(name, count .. " nodes suppressed")
831-
end, check_set),
831+
end, check_region),
832832
})
833833

834834
minetest.register_chatcommand("/highlight", {
@@ -839,7 +839,7 @@ minetest.register_chatcommand("/highlight", {
839839
local node = get_node(name, param)
840840
local count = worldedit.highlight(worldedit.pos1[name], worldedit.pos2[name], node)
841841
worldedit.player_notify(name, count .. " nodes highlighted")
842-
end, check_set),
842+
end, check_region),
843843
})
844844

845845
minetest.register_chatcommand("/restore", {

0 commit comments

Comments
 (0)
Please sign in to comment.