mirror of
https://github.com/minetest-mods/technic.git
synced 2024-11-10 20:40:27 +01:00
Remove spaces from fractions in nodeboxes
This commit is contained in:
parent
51b328a247
commit
08a0baf8ce
|
@ -132,20 +132,20 @@ local iclipfence_def = {
|
|||
-- connect_top =
|
||||
-- connect_bottom =
|
||||
connect_front = {
|
||||
{ -1 / 16, 3 / 16, -1 / 2, 1 / 16, 5 / 16, -1 / 8 },
|
||||
{ -1 / 16, -5 / 16, -1 / 2, 1 / 16, -3 / 16, -1 / 8 }
|
||||
{ -1/16, 3/16, -1/2, 1/16, 5/16, -1/8 },
|
||||
{ -1/16, -5/16, -1/2, 1/16, -3/16, -1/8 }
|
||||
},
|
||||
connect_left = {
|
||||
{ -1 / 2, 3 / 16, -1 / 16, -1 / 8, 5 / 16, 1 / 16 },
|
||||
{ -1 / 2, -5 / 16, -1 / 16, -1 / 8, -3 / 16, 1 / 16 }
|
||||
{ -1/2, 3/16, -1/16, -1/8, 5/16, 1/16 },
|
||||
{ -1/2, -5/16, -1/16, -1/8, -3/16, 1/16 }
|
||||
},
|
||||
connect_back = {
|
||||
{ -1 / 16, 3 / 16, 1 / 8, 1 / 16, 5 / 16, 1 / 2 },
|
||||
{ -1 / 16, -5 / 16, 1 / 8, 1 / 16, -3 / 16, 1 / 2 }
|
||||
{ -1/16, 3/16, 1/8, 1/16, 5/16, 1/2 },
|
||||
{ -1/16, -5/16, 1/8, 1/16, -3/16, 1/2 }
|
||||
},
|
||||
connect_right = {
|
||||
{ 1 / 8, 3 / 16, -1 / 16, 1 / 2, 5 / 16, 1 / 16 },
|
||||
{ 1 / 8, -5 / 16, -1 / 16, 1 / 2, -3 / 16, 1 / 16 }
|
||||
{ 1/8, 3/16, -1/16, 1/2, 5/16, 1/16 },
|
||||
{ 1/8, -5/16, -1/16, 1/2, -3/16, 1/16 }
|
||||
},
|
||||
},
|
||||
connects_to = { "group:fence", "group:wood", "group:tree" },
|
||||
|
|
|
@ -7,5 +7,5 @@ minetest.register_craft({
|
|||
}
|
||||
})
|
||||
|
||||
technic.register_cable("HV", 3 / 16)
|
||||
technic.register_cable("HV", 3/16)
|
||||
|
||||
|
|
|
@ -9,5 +9,5 @@ minetest.register_craft({
|
|||
}
|
||||
})
|
||||
|
||||
technic.register_cable("LV", 2 / 16)
|
||||
technic.register_cable("LV", 2/16)
|
||||
|
||||
|
|
|
@ -106,9 +106,9 @@ technic.cnc.programs = {
|
|||
cbox = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{ -6 / 16, 4 / 16, -6 / 16, 6 / 16, 8 / 16, 6 / 16 },
|
||||
{ -8 / 16, -4 / 16, -8 / 16, 8 / 16, 4 / 16, 8 / 16 },
|
||||
{ -6 / 16, -8 / 16, -6 / 16, 6 / 16, -4 / 16, 6 / 16 }
|
||||
{ -6/16, 4/16, -6/16, 6/16, 8/16, 6/16 },
|
||||
{ -8/16, -4/16, -8/16, 8/16, 4/16, 8/16 },
|
||||
{ -6/16, -8/16, -6/16, 6/16, -4/16, 6/16 }
|
||||
}
|
||||
}
|
||||
},
|
||||
|
@ -150,10 +150,10 @@ technic.cnc.programs = {
|
|||
cbox = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{ -2 / 16, 4 / 16, -2 / 16, 2 / 16, 8 / 16, 2 / 16 },
|
||||
{ -4 / 16, 0, -4 / 16, 4 / 16, 4 / 16, 4 / 16 },
|
||||
{ -6 / 16, -4 / 16, -6 / 16, 6 / 16, 0, 6 / 16 },
|
||||
{ -8 / 16, -8 / 16, -8 / 16, 8 / 16, -4 / 16, 8 / 16 }
|
||||
{ -2/16, 4/16, -2/16, 2/16, 8/16, 2/16 },
|
||||
{ -4/16, 0, -4/16, 4/16, 4/16, 4/16 },
|
||||
{ -6/16, -4/16, -6/16, 6/16, 0, 6/16 },
|
||||
{ -8/16, -8/16, -8/16, 8/16, -4/16, 8/16 }
|
||||
}
|
||||
}
|
||||
},
|
||||
|
@ -165,10 +165,10 @@ technic.cnc.programs = {
|
|||
cbox = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{ -2 / 16, -2 / 16, -2 / 16, 2 / 16, 0, 2 / 16 },
|
||||
{ -4 / 16, -4 / 16, -4 / 16, 4 / 16, -2 / 16, 4 / 16 },
|
||||
{ -6 / 16, -6 / 16, -6 / 16, 6 / 16, -4 / 16, 6 / 16 },
|
||||
{ -8 / 16, -8 / 16, -8 / 16, 8 / 16, -6 / 16, 8 / 16 }
|
||||
{ -2/16, -2/16, -2/16, 2/16, 0, 2/16 },
|
||||
{ -4/16, -4/16, -4/16, 4/16, -2/16, 4/16 },
|
||||
{ -6/16, -6/16, -6/16, 6/16, -4/16, 6/16 },
|
||||
{ -8/16, -8/16, -8/16, 8/16, -6/16, 8/16 }
|
||||
}
|
||||
}
|
||||
},
|
||||
|
@ -202,10 +202,10 @@ technic.cnc.programs = {
|
|||
cbox = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{ -8 / 16, 8 / 16, -8 / 16, 8 / 16, 4 / 16, 8 / 16 },
|
||||
{ -4 / 16, 4 / 16, -4 / 16, 8 / 16, 0, 8 / 16 },
|
||||
{ 0, 0, 0, 8 / 16, -4 / 16, 8 / 16 },
|
||||
{ 4 / 16, -4 / 16, 4 / 16, 8 / 16, -8 / 16, 8 / 16 }
|
||||
{ -8/16, 8/16, -8/16, 8/16, 4/16, 8/16 },
|
||||
{ -4/16, 4/16, -4/16, 8/16, 0, 8/16 },
|
||||
{ 0, 0, 0, 8/16, -4/16, 8/16 },
|
||||
{ 4/16, -4/16, 4/16, 8/16, -8/16, 8/16 }
|
||||
}
|
||||
}
|
||||
},
|
||||
|
@ -239,10 +239,10 @@ technic.cnc.programs = {
|
|||
cbox = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{ 4 / 16, 4 / 16, 4 / 16, 8 / 16, 8 / 16, 8 / 16 },
|
||||
{ 0, 0, 0, 8 / 16, 4 / 16, 8 / 16 },
|
||||
{ -4 / 16, -4 / 16, -4 / 16, 8 / 16, 0, 8 / 16 },
|
||||
{ -8 / 16, -8 / 16, -8 / 16, 8 / 16, -4 / 16, 8 / 16 }
|
||||
{ 4/16, 4/16, 4/16, 8/16, 8/16, 8/16 },
|
||||
{ 0, 0, 0, 8/16, 4/16, 8/16 },
|
||||
{ -4/16, -4/16, -4/16, 8/16, 0, 8/16 },
|
||||
{ -8/16, -8/16, -8/16, 8/16, -4/16, 8/16 }
|
||||
}
|
||||
}
|
||||
},
|
||||
|
@ -254,10 +254,10 @@ technic.cnc.programs = {
|
|||
cbox = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{ -8 / 16, 8 / 16, -8 / 16, 8 / 16, 4 / 16, 8 / 16 },
|
||||
{ -8 / 16, 4 / 16, -4 / 16, 8 / 16, 0, 8 / 16 },
|
||||
{ -8 / 16, 0, 0, 8 / 16, -4 / 16, 8 / 16 },
|
||||
{ -8 / 16, -4 / 16, 4 / 16, 8 / 16, -8 / 16, 8 / 16 }
|
||||
{ -8/16, 8/16, -8/16, 8/16, 4/16, 8/16 },
|
||||
{ -8/16, 4/16, -4/16, 8/16, 0, 8/16 },
|
||||
{ -8/16, 0, 0, 8/16, -4/16, 8/16 },
|
||||
{ -8/16, -4/16, 4/16, 8/16, -8/16, 8/16 }
|
||||
}
|
||||
}
|
||||
},
|
||||
|
@ -269,10 +269,10 @@ technic.cnc.programs = {
|
|||
cbox = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{ 4 / 16, -8 / 16, 4 / 16, 8 / 16, 8 / 16, 8 / 16 },
|
||||
{ 0, -8 / 16, 0, 4 / 16, 8 / 16, 8 / 16 },
|
||||
{ -4 / 16, -8 / 16, -4 / 16, 0, 8 / 16, 8 / 16 },
|
||||
{ -8 / 16, -8 / 16, -8 / 16, -4 / 16, 8 / 16, 8 / 16 }
|
||||
{ 4/16, -8/16, 4/16, 8/16, 8/16, 8/16 },
|
||||
{ 0, -8/16, 0, 4/16, 8/16, 8/16 },
|
||||
{ -4/16, -8/16, -4/16, 0, 8/16, 8/16 },
|
||||
{ -8/16, -8/16, -8/16, -4/16, 8/16, 8/16 }
|
||||
}
|
||||
}
|
||||
},
|
||||
|
@ -284,10 +284,10 @@ technic.cnc.programs = {
|
|||
cbox = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{ -8 / 16, 4 / 16, 4 / 16, 8 / 16, 8 / 16, 8 / 16 },
|
||||
{ -8 / 16, 0, 0, 8 / 16, 4 / 16, 8 / 16 },
|
||||
{ -8 / 16, -4 / 16, -4 / 16, 8 / 16, 0, 8 / 16 },
|
||||
{ -8 / 16, -8 / 16, -8 / 16, 8 / 16, -4 / 16, 8 / 16 }
|
||||
{ -8/16, 4/16, 4/16, 8/16, 8/16, 8/16 },
|
||||
{ -8/16, 0, 0, 8/16, 4/16, 8/16 },
|
||||
{ -8/16, -4/16, -4/16, 8/16, 0, 8/16 },
|
||||
{ -8/16, -8/16, -8/16, 8/16, -4/16, 8/16 }
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
|
@ -9,5 +9,5 @@ minetest.register_craft({
|
|||
}
|
||||
})
|
||||
|
||||
technic.register_cable("MV", 2.5 / 16)
|
||||
technic.register_cable("MV", 2.5/16)
|
||||
|
||||
|
|
|
@ -9,8 +9,8 @@ local function compute_forceload_positions(pos, meta)
|
|||
local minbpos = {}
|
||||
local maxbpos = {}
|
||||
for _, coord in ipairs({ "x", "y", "z" }) do
|
||||
minbpos[coord] = math.floor(minpos[coord] / 16) * 16
|
||||
maxbpos[coord] = math.floor(maxpos[coord] / 16) * 16
|
||||
minbpos[coord] = math.floor(minpos[coord]/16) * 16
|
||||
maxbpos[coord] = math.floor(maxpos[coord]/16) * 16
|
||||
end
|
||||
local flposes = {}
|
||||
for x = minbpos.x, maxbpos.x, 16 do
|
||||
|
|
|
@ -161,8 +161,8 @@ for xm = 0, 1 do
|
|||
for zm = 0, 1 do
|
||||
for zp = 0, 1 do
|
||||
|
||||
local a = 8 / 16
|
||||
local b = 7 / 16
|
||||
local a = 8/16
|
||||
local b = 7/16
|
||||
local nodeboxes = {
|
||||
{ -a, -a, -a, -b, a, -b },
|
||||
{ -a, -a, b, -b, a, a },
|
||||
|
|
Loading…
Reference in New Issue
Block a user