summaryrefslogtreecommitdiff
path: root/worldedit
diff options
context:
space:
mode:
authorAnthony Zhang <azhang9@gmail.com>2014-12-29 18:16:36 -0500
committerAnthony Zhang <azhang9@gmail.com>2014-12-29 18:16:36 -0500
commit7f580611f564bc4d67c3b77fc4866b4afb2fb98a (patch)
treeff7d88e916c7543718e65441e78f66a27413c9a4 /worldedit
parent47990685514ebdfe114977c33e08c20511f1f0a7 (diff)
Fix some warnings.
Diffstat (limited to 'worldedit')
-rw-r--r--worldedit/serialization.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/worldedit/serialization.lua b/worldedit/serialization.lua
index e08699e..86b23ec 100644
--- a/worldedit/serialization.lua
+++ b/worldedit/serialization.lua
@@ -199,7 +199,7 @@ worldedit.allocate_with_nodes = function(origin_pos, nodes)
local pos2x, pos2y, pos2z = -huge, -huge, -huge
local origin_x, origin_y, origin_z = origin_pos.x, origin_pos.y, origin_pos.z
for i, entry in ipairs(nodes) do
- x, y, z = origin_x + entry.x, origin_y + entry.y, origin_z + entry.z
+ local x, y, z = origin_x + entry.x, origin_y + entry.y, origin_z + entry.z
if x < pos1x then pos1x = x end
if y < pos1y then pos1y = y end
if z < pos1z then pos1z = z end