From 929474ff194683e59f2ad75106c2dc7d6474302f Mon Sep 17 00:00:00 2001 From: xtex Date: Tue, 4 Jul 2023 15:37:44 +0800 Subject: [PATCH] fix: projection command send empty response --- .../src/main/kotlin/quaedam/projection/ProjectionCommand.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/src/main/kotlin/quaedam/projection/ProjectionCommand.kt b/common/src/main/kotlin/quaedam/projection/ProjectionCommand.kt index fc2642d..6cc8c61 100644 --- a/common/src/main/kotlin/quaedam/projection/ProjectionCommand.kt +++ b/common/src/main/kotlin/quaedam/projection/ProjectionCommand.kt @@ -55,7 +55,7 @@ object ProjectionCommand { ) val data = Projector.findNearbyProjectors(ctx.source.level, pos) .map { ctx.source.level.getBlockEntity(it)!!.saveWithFullMetadata() } - ctx.source.sendSystemMessage(Component.nbt(path, false, Optional.empty()) { data.stream() }) + ctx.source.sendSystemMessage(Component.nbt(path, true, Optional.empty()) { data.stream() }) return 0 } @@ -71,7 +71,7 @@ object ProjectionCommand { val type = ctx.getArgument("type", Holder.Reference::class.java).value() as ProjectionEffectType<*> val data = Projector.findNearbyProjections(ctx.source.level, pos, type) .map { it.toNbt() } - ctx.source.sendSystemMessage(Component.nbt(path, false, Optional.empty()) { data.stream() }) + ctx.source.sendSystemMessage(Component.nbt(path, true, Optional.empty()) { data.stream() }) return 0 }