mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-03-09 13:21:51 +09:00
particles to disappear when it hits the ground
This commit is contained in:
@@ -100,7 +100,7 @@ object PickaxeCore {
|
||||
y * TILE_SIZED + 4 + (4 * (it / 3))
|
||||
)
|
||||
createRandomBlockParticle(tile, pos, 1.0 * (if (Math.random() < 0.5) -1 else 1)).let {
|
||||
it.despawnUponCollision = false
|
||||
it.despawnUponCollision = true
|
||||
(Terrarum.ingame as TerrarumIngame).addParticle(it)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -106,7 +106,7 @@ object SledgehammerCore {
|
||||
y * TILE_SIZED + 4 + (4 * (it / 3))
|
||||
)
|
||||
createRandomBlockParticle(wall, pos, 1.0 * (if (Math.random() < 0.5) -1 else 1)).let {
|
||||
it.despawnUponCollision = false
|
||||
it.despawnUponCollision = true
|
||||
it.drawColour.set(App.tileMaker.wallOverlayColour)
|
||||
(Terrarum.ingame as TerrarumIngame).addParticle(it)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user