Skip to content

Commit

Permalink
don't compare recalculateHeightMap
Browse files Browse the repository at this point in the history
  • Loading branch information
ethaniccc authored Feb 14, 2024
1 parent a665196 commit 7db49bc
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions server/world/chunk/chunk.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,6 @@ func New(air uint32, r cube.Range) *Chunk {

// Equals returns if the chunk passed is equal to the current one
func (chunk *Chunk) Equals(c *Chunk) bool {
if chunk.recalculateHeightMap || c.recalculateHeightMap {
return false
}

if c.r != chunk.r || c.air != chunk.air ||
!slices.Equal(c.heightMap, chunk.heightMap) || len(c.sub) != len(chunk.sub) {
return false
Expand Down

0 comments on commit 7db49bc

Please sign in to comment.