Skip to content

Commit c2c5f11

Browse files
committed
Hotfix for //stack
1 parent 66d5f4e commit c2c5f11

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

worldedit_commands/init.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1146,6 +1146,8 @@ worldedit.register_command("stack", {
11461146
return false
11471147
end
11481148

1149+
if axis == "?" then axis = worldedit.player_axis(name) end
1150+
11491151
-- Does this need a separate error or is the 128x128x128 message fine?
11501152
local pos1, pos2 = worldedit.pos1[name], worldedit.pos2[name]
11511153
if math.abs((math.abs(pos2[axis] - pos1[axis]) + 1) * repetitions) > max_size then

0 commit comments

Comments
 (0)