Skip to content

Commit

Permalink
Initialize logger
Browse files Browse the repository at this point in the history
and whitespace change
  • Loading branch information
EnderBoy9217 authored Dec 30, 2024
1 parent 7a84c97 commit d3fb499
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ class BalloonBlock(properties: Properties) : Block(properties) {
if ( invalidDimensionLocations.contains(currentDimensionLocation) && EurekaConfig.SERVER.balloonsPopInNether ) {
// Replace the balloon block with air (Similar to how water is replaced in the Nether)
serverLevel.setBlock(pos, Blocks.AIR.defaultBlockState(), 3)

// Particles
serverLevel.sendParticles(
ParticleTypes.LARGE_SMOKE,
Expand All @@ -62,7 +61,6 @@ class BalloonBlock(properties: Properties) : Block(properties) {
0.1, 0.1, 0.1, // Spread in x, y, z directions
0.01 // Speed multiplier
)

// Sounds
serverLevel.playSound(
null, // No specific player (plays for all nearby players)
Expand All @@ -73,7 +71,6 @@ class BalloonBlock(properties: Properties) : Block(properties) {
1.0f // Pitch
)
}

}

override fun onRemove(state: BlockState, level: Level, pos: BlockPos, newState: BlockState, isMoving: Boolean) {
Expand All @@ -100,4 +97,6 @@ class BalloonBlock(properties: Properties) : Block(properties) {
}
}
}

private val logger by logger()
}

0 comments on commit d3fb499

Please sign in to comment.