slight elaboration on world wire changed event

This commit is contained in:
minjaesong
2021-08-03 13:39:08 +09:00
parent 7624e37bda
commit 1ae3e34392
3 changed files with 13 additions and 7 deletions

View File

@@ -324,7 +324,7 @@ open class GameWorld : Disposable {
wirings[blockAddr]!!.wires.add(tile)
if (!bypassEvent)
Terrarum.ingame?.queueWireChangedEvent(tile, LandUtil.getBlockAddr(this, x, y))
Terrarum.ingame?.queueWireChangedEvent(tile, false, LandUtil.getBlockAddr(this, x, y))
}
fun getAllWiresFrom(x: Int, y: Int): SortedArrayList<ItemID>? {