Skip to content

Commit

Permalink
refactor: useless parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
1zun4 committed Jan 7, 2025
1 parent 6403266 commit 9e97c11
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ class BlockPlacer(

inaccessible.clear()
rotationMode.activeChoice.onTickStart()
if (scheduleCurrentPlacements(itemStack, it)) {
if (scheduleCurrentPlacements(itemStack)) {
return@handler
}

Expand Down Expand Up @@ -216,13 +216,13 @@ class BlockPlacer(
}.forEach { pos ->
addToQueue(pos, isSupport = true)
}
scheduleCurrentPlacements(itemStack, event)
scheduleCurrentPlacements(itemStack)
}

support.chronometer.reset()
}

private fun scheduleCurrentPlacements(itemStack: ItemStack, it: ScheduleRotationUpdateEvent): Boolean {
private fun scheduleCurrentPlacements(itemStack: ItemStack): Boolean {
var hasPlaced = false

val iterator = blocks.object2BooleanEntrySet().iterator()
Expand Down

0 comments on commit 9e97c11

Please sign in to comment.