Skip to content

Commit

Permalink
Remove math.floor conversions in SetVoxelDataInternal
Browse files Browse the repository at this point in the history
  • Loading branch information
quentin452 committed Mar 23, 2024
1 parent 5dbaf67 commit 900b755
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/world/chunks/chunkutils.lua
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@ function NewChunkRequest(gx, gy, gz, valueg)
end

function SetVoxelDataInternal(self, x, y, z, blockvalue, dataIndex)
x = math.floor(x)
y = math.floor(y)
z = math.floor(z)
if x <= ChunkSize and x >= 1 and z <= ChunkSize and z >= 1 and y >= 1 and y <= WorldHeight then
local dataIndexOffset = (dataIndex == "First" and 2 or 3)
self.voxels[x][z] =
Expand Down

0 comments on commit 900b755

Please sign in to comment.