end
if axis == nil or dir == nil then
- return false, "Invalid"
+ return false, "Invalid if looking straight up or down"
end
assert(worldedit.cuboid_shift(name, axis, amount * dir))
end
if direction == "front" then
- resaxis = axis
- resdir = dir
+ if axis == "y" then
+ resaxis = nil
+ resdir = nil
+ else
+ resaxis = axis
+ resdir = dir
+ end
end
if direction == "back" then
- resaxis = axis
- resdir = -dir
+ if axis == "y" then
+ resaxis = nil
+ resdir = nil
+ else
+ resaxis = axis
+ resdir = -dir
+ end
end
if direction == "left" then