From 31a90bd91172eb07923ea41c0ed18bdaee83f462 Mon Sep 17 00:00:00 2001 From: clasher113 Date: Fri, 29 May 2026 11:41:40 +0300 Subject: [PATCH] blocks.fill fix --- res/scripts/stdcmd.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/res/scripts/stdcmd.lua b/res/scripts/stdcmd.lua index 779ad50bf..c2b102675 100644 --- a/res/scripts/stdcmd.lua +++ b/res/scripts/stdcmd.lua @@ -133,6 +133,9 @@ console.add_command( "Fill specified zone with blocks", function(args, kwargs) local name, x1,y1,z1, x2,y2,z2 = unpack(args) + x1, x2 = math.min(x1, x2), math.max(x1, x2) + y1, y2 = math.min(y1, y2), math.max(y1, y2) + z1, z2 = math.min(z1, z2), math.max(z1, z2) local id = block.index(name) for y=y1,y2 do for z=z1,z2 do