From bad3fd9b1678b95539cd7d47124c3b109321e3b8 Mon Sep 17 00:00:00 2001 From: DBotThePony Date: Thu, 18 Apr 2024 14:23:32 +0700 Subject: [PATCH] Fix painting does nothing --- src/main/kotlin/ru/dbotthepony/kstarbound/world/Chunk.kt | 3 --- .../ru/dbotthepony/kstarbound/world/TileModification.kt | 4 ++-- 2 files changed, 2 insertions(+), 5 deletions(-) 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)