From 899eac954e88aee8f6a7be2e16ed78cbeddfaedc Mon Sep 17 00:00:00 2001 From: xtex Date: Thu, 20 Jul 2023 17:43:41 +0800 Subject: [PATCH] fix: remove test code --- .../projection/misc/SkylightProjection.kt | 20 ------------------- .../quaedam/projector/ProjectorBlock.kt | 1 - 2 files changed, 21 deletions(-) diff --git a/common/src/main/kotlin/quaedam/projection/misc/SkylightProjection.kt b/common/src/main/kotlin/quaedam/projection/misc/SkylightProjection.kt index 861cf4b..b18c771 100644 --- a/common/src/main/kotlin/quaedam/projection/misc/SkylightProjection.kt +++ b/common/src/main/kotlin/quaedam/projection/misc/SkylightProjection.kt @@ -45,26 +45,6 @@ object SkylightProjectionBlock : EntityProjectionBlock override val blockEntity = SkylightProjection.blockEntity - override fun use( - blockState: BlockState, - level: Level, - blockPos: BlockPos, - player: Player, - interactionHand: InteractionHand, - blockHitResult: BlockHitResult - ): InteractionResult { - if (level.isClientSide) { - println("update") - applyChange(level, blockPos) { - factor -= 0.5 - if (factor < 0.5) factor = 2.0 - println("new factor: $factor") - } - return InteractionResult.CONSUME - } - return super.use(blockState, level, blockPos, player, interactionHand, blockHitResult) - } - } data class SkylightProjectionEffect(var factor: Double = 2.0) : ProjectionEffect() { diff --git a/common/src/main/kotlin/quaedam/projector/ProjectorBlock.kt b/common/src/main/kotlin/quaedam/projector/ProjectorBlock.kt index 5fe9832..0bc07da 100644 --- a/common/src/main/kotlin/quaedam/projector/ProjectorBlock.kt +++ b/common/src/main/kotlin/quaedam/projector/ProjectorBlock.kt @@ -39,7 +39,6 @@ object ProjectorBlock : Block(Properties.of() blockHitResult: BlockHitResult ): InteractionResult { checkUpdate(level, blockPos) - println(level.getBlockEntity(blockPos)!!.saveWithoutMetadata()) return InteractionResult.SUCCESS }