Fallen-Breath/litematica-server-paster

1.20.1告示牌粘贴与预期不符

开放

#15 创建于 2026年7月23日

 (3 条评论) (0 个反应) (0 位负责人)Java (7 个派生)github user discovery
buggood first issue

仓库指标

星标
 (41 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

Bug description

1.20.1粘贴告示牌方块时,如果告示牌文本过长或双面都有字,则文字直接消失。

Steps to reproduce

在1.20.1中,使用投影保存任意两面都至少有8个字的告示牌(确保nbt足够长),然后在服务器中粘贴。

Expected behavior

预期应该正常粘贴出告示牌内容,而不是丢失。

Actual behavior

发现告示牌内容无法正确粘贴,双面都为空。

Relevant logs

No response

Minecraft version

1.20.1

Litematica Server Paster version

litematica-server-paster-v1.3.13-mc1.20.1

Other information

可能的修复方式(已测试可用):

粘贴代码以便使用: 在路径

versions\1.18.2\src\main\java\me\fallenbreath\lmspaster\mixins\TaskPasteSchematicSetblockMixin.java

代码

	//#if MC >= 12000
	//$$ @Inject(method = "useSpecialPasting", at = @At("HEAD"), remap = false, cancellable = true)
	//$$ private void disableVanillaSpecialSignPasting(BlockState state, CallbackInfoReturnable<Boolean> ci)
	//$$ {
	//$$ 	if (ClientNetworkHandler.isServerPasterAvailable() &&
    //$$ 	 	Configs.Generic.PASTE_NBT_BEHAVIOR.getOptionListValue() == PasteNbtBehavior.NONE)
    //$$ 	{
    //$$ 		ci.setReturnValue(false);
	//$$ 		ci.cancel();
    //$$ 	}
	//$$ }
	//#endif

Check list

  • I have verified that the issue persists in the latest version of the mod.
  • I have searched the existing issues and confirmed that this is not a duplicate.

贡献者指南