X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=mods%2Fredstone%2Finit.lua;h=45ed90febfbee6ce0df13ec6f372da0ee6516195;hb=52024522bfd652c10ed29b9e2b55e5df0e6cc8e3;hp=f4e3e5238586fd89ef50283c20be121f785cb973;hpb=8ae5e2ea223af3bdd485335a1404f16ffd0a56c3;p=Crafter.git diff --git a/mods/redstone/init.lua b/mods/redstone/init.lua index f4e3e52..45ed90f 100644 --- a/mods/redstone/init.lua +++ b/mods/redstone/init.lua @@ -93,14 +93,11 @@ local function create_boundary_box(pos) if not table_3d[x] then table_3d[x] = {} end if not table_3d[x][y] then table_3d[x][y] = {} end - if x == pos.x-9 or x == pos.x+9 or + if (x == pos.x-9 or x == pos.x+9 or y == pos.y-9 or y == pos.y+9 or - z == pos.z-9 or z == pos.z+9 then - if temp_pool.dust then - table_3d[x][y][z] = {torch=temp_pool.dust} - else - table_3d[x][y][z] = temp_pool - end + z == pos.z-9 or z == pos.z+9) and + temp_pool.dust and temp_pool.dust > 1 then + table_3d[x][y][z] = {torch=temp_pool.dust} else if temp_pool.dust then table_3d[x][y][z] = {dust=0,origin=temp_pool.dust}