diff --git a/src/main/kotlin/ru/dbotthepony/kstarbound/world/Chunk.kt b/src/main/kotlin/ru/dbotthepony/kstarbound/world/Chunk.kt index db8b1755..c5cfd299 100644 --- a/src/main/kotlin/ru/dbotthepony/kstarbound/world/Chunk.kt +++ b/src/main/kotlin/ru/dbotthepony/kstarbound/world/Chunk.kt @@ -229,19 +229,16 @@ abstract class Chunk, This : Chunk, position: Vector2i, allowEntityOverlap: Boolean) { - val cell = world.getCell(position) - val tile = cell.tile(isBackground).mutable() + val cell = world.getCell(position).mutable() + val tile = cell.tile(isBackground) tile.hueShift = 0f tile.color = this.color world.setCell(position, cell)