fixed a bug where the barehand action would do nothing

This commit is contained in:
minjaesong
2022-01-14 15:44:37 +09:00
parent a7357c00a9
commit b87dc1f28b
2 changed files with 2 additions and 3 deletions

View File

@@ -1231,7 +1231,6 @@ open class TerrarumIngame(batch: SpriteBatch) : IngameInstance(batch) {
}
fun performBarehandAction(actor: ActorWithBody, delta: Float) {
// println("whack!")
fun getActorsAtVicinity(worldX: Double, worldY: Double, radius: Double): List<ActorWithBody> {
val outList = java.util.ArrayList<ActorWithBody>()
@@ -1252,6 +1251,7 @@ open class TerrarumIngame(batch: SpriteBatch) : IngameInstance(batch) {
// else, punch a block
val punchBlockSize = punchSize.div(TILE_SIZED).floorInt()
if (punchBlockSize > 0) {
// println("whack!")
PickaxeCore.startPrimaryUse(actor, delta, null, Terrarum.mouseTileX, Terrarum.mouseTileY, 1.0 / punchBlockSize, punchBlockSize, punchBlockSize, false)
}
}