core: some fixes

This commit is contained in:
2026-01-09 17:02:35 +02:00
parent 2a0dd51659
commit 4785795640
10 changed files with 166 additions and 96 deletions

View File

@@ -63,9 +63,7 @@ function TerrainGen:GetChunk(x, y, z)
if y == 1 then
for cx = 1, 8 do
for cz = 1, 8 do
--local perlin = math.noise(((x*8)+cx)/100,((z*8)+cz)/100)
chunk:CreateBlock(cx, 1, cz, { id = 1, state = {} })
--chunk:CreateBlock(x, 2, z, { id = 1, state = {} })
chunk:CreateBlock(cx, 1, cz, { id = "mc:grass_block", state = {} })
end
end
end
@@ -73,9 +71,7 @@ function TerrainGen:GetChunk(x, y, z)
for cx = 1, 8 do
for cy = 1, 8 do
for cz = 1, 8 do
--local perlin = math.noise(((x*8)+cx)/100,((z*8)+cz)/100)
chunk:CreateBlock(cx, cy, cz, { id = 2, state = {} })
--chunk:CreateBlock(x, 2, z, { id = 1, state = {} })
chunk:CreateBlock(cx, cy, cz, { id = "mc:dirt_block", state = {} })
end
end
end
@@ -93,9 +89,7 @@ function TerrainGen:GetFakeChunk(x, y, z)
for cy = 1,8 do
for cx = 1, 8 do
for cz = 1, 8 do
--local perlin = math.noise(((x*8)+cx)/100,((z*8)+cz)/100)
chunk:CreateBlock(cx, cy, cz, { id = -2, state = {} })
--chunk:CreateBlock(x, 2, z, { id = 1, state = {} })
chunk:CreateBlock(cx, cy, cz, { id = "invalid", state = {} })
end
end
end