fix: remove test code

This commit is contained in:
xtex 2023-07-20 17:43:41 +08:00
parent e7aa4f4c30
commit 899eac954e
Signed by: xtex
GPG Key ID: B918086ED8045B91
2 changed files with 0 additions and 21 deletions

View File

@ -45,26 +45,6 @@ object SkylightProjectionBlock : EntityProjectionBlock<SkylightProjectionEffect>
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() {

View File

@ -39,7 +39,6 @@ object ProjectorBlock : Block(Properties.of()
blockHitResult: BlockHitResult
): InteractionResult {
checkUpdate(level, blockPos)
println(level.getBlockEntity(blockPos)!!.saveWithoutMetadata())
return InteractionResult.SUCCESS
}