Fix painting does nothing
This commit is contained in:
parent
adab78f0c0
commit
bad3fd9b16
@ -229,19 +229,16 @@ abstract class Chunk<WorldType : World<WorldType, This>, This : Chunk<WorldType,
|
|||||||
}
|
}
|
||||||
|
|
||||||
protected open fun foregroundChanges(x: Int, y: Int, cell: ImmutableCell) {
|
protected open fun foregroundChanges(x: Int, y: Int, cell: ImmutableCell) {
|
||||||
cellChanges(x, y, cell)
|
|
||||||
tileChangeset++
|
tileChangeset++
|
||||||
foregroundChangeset++
|
foregroundChangeset++
|
||||||
}
|
}
|
||||||
|
|
||||||
protected open fun backgroundChanges(x: Int, y: Int, cell: ImmutableCell) {
|
protected open fun backgroundChanges(x: Int, y: Int, cell: ImmutableCell) {
|
||||||
cellChanges(x, y, cell)
|
|
||||||
tileChangeset++
|
tileChangeset++
|
||||||
backgroundChangeset++
|
backgroundChangeset++
|
||||||
}
|
}
|
||||||
|
|
||||||
protected open fun liquidChanges(x: Int, y: Int, cell: ImmutableCell) {
|
protected open fun liquidChanges(x: Int, y: Int, cell: ImmutableCell) {
|
||||||
cellChanges(x, y, cell)
|
|
||||||
liquidChangeset++
|
liquidChangeset++
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -225,8 +225,8 @@ sealed class TileModification {
|
|||||||
}
|
}
|
||||||
|
|
||||||
override fun apply(world: World<*, *>, position: Vector2i, allowEntityOverlap: Boolean) {
|
override fun apply(world: World<*, *>, position: Vector2i, allowEntityOverlap: Boolean) {
|
||||||
val cell = world.getCell(position)
|
val cell = world.getCell(position).mutable()
|
||||||
val tile = cell.tile(isBackground).mutable()
|
val tile = cell.tile(isBackground)
|
||||||
tile.hueShift = 0f
|
tile.hueShift = 0f
|
||||||
tile.color = this.color
|
tile.color = this.color
|
||||||
world.setCell(position, cell)
|
world.setCell(position, cell)
|
||||||
|
Loading…
Reference in New Issue
Block a user