Skip to content

Commit

Permalink
Compile fix
Browse files Browse the repository at this point in the history
  • Loading branch information
andantet committed Apr 16, 2024
1 parent 0f34af6 commit 3ccd72b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/kotlin/dev/hybridlabs/aquatic/block/AnemoneBlock.kt
Original file line number Diff line number Diff line change
Expand Up @@ -66,15 +66,15 @@ class AnemoneBlock(settings: Settings) : PlantBlock(settings), BlockEntityProvid
}
}

override fun onBreak(world: World, pos: BlockPos, state: BlockState, player: PlayerEntity) {
override fun onBreak(world: World, pos: BlockPos, state: BlockState, player: PlayerEntity): BlockState? {
if (!world.isClient && player.isCreative && world.gameRules.getBoolean(GameRules.DO_TILE_DROPS)) {
val blockEntity = world.getBlockEntity(pos)
if (blockEntity is AnemoneBlockEntity) {
blockEntity.emergencyReleaseHiddenClownfish()
}
}

super.onBreak(world, pos, state, player)
return super.onBreak(world, pos, state, player)
}

override fun canPlantOnTop(floor: BlockState, world: BlockView, pos: BlockPos): Boolean {
Expand Down

0 comments on commit 3ccd72b

Please sign in to comment.