From 21e2a4d210a8b158d4f507e69a99c55ba47d48d7 Mon Sep 17 00:00:00 2001 From: Jason Penilla <11360596+jpenilla@users.noreply.github.com> Date: Sun, 13 Jun 2021 01:40:50 -0700 Subject: [PATCH] patch --- ...-check-ConvertSigns-boolean-every-sign-save.patch | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) rename patches/{server-remapped => server}/Don-t-check-ConvertSigns-boolean-every-sign-save.patch (75%) diff --git a/patches/server-remapped/Don-t-check-ConvertSigns-boolean-every-sign-save.patch b/patches/server/Don-t-check-ConvertSigns-boolean-every-sign-save.patch similarity index 75% rename from patches/server-remapped/Don-t-check-ConvertSigns-boolean-every-sign-save.patch rename to patches/server/Don-t-check-ConvertSigns-boolean-every-sign-save.patch index ef99a0c58c..156166a0eb 100644 --- a/patches/server-remapped/Don-t-check-ConvertSigns-boolean-every-sign-save.patch +++ b/patches/server/Don-t-check-ConvertSigns-boolean-every-sign-save.patch @@ -10,20 +10,18 @@ diff --git a/src/main/java/net/minecraft/world/level/block/entity/SignBlockEntit index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644 --- a/src/main/java/net/minecraft/world/level/block/entity/SignBlockEntity.java +++ b/src/main/java/net/minecraft/world/level/block/entity/SignBlockEntity.java -@@ -0,0 +0,0 @@ public class SignBlockEntity extends BlockEntity implements CommandSource { // C - private final FormattedCharSequence[] renderMessages; - private DyeColor color; - public java.util.UUID signEditor; // Paper +@@ -0,0 +0,0 @@ + package net.minecraft.world.level.block.entity; + private static final boolean CONVERT_LEGACY_SIGNS = Boolean.getBoolean("convertLegacySigns"); // Paper - public SignBlockEntity() { - super(BlockEntityType.SIGN); + import com.mojang.brigadier.exceptions.CommandSyntaxException; + import java.util.UUID; @@ -0,0 +0,0 @@ public class SignBlockEntity extends BlockEntity implements CommandSource { // C } // CraftBukkit start - if (Boolean.getBoolean("convertLegacySigns")) { + if (CONVERT_LEGACY_SIGNS) { // Paper - tag.putBoolean("Bukkit.isConverted", true); + nbt.putBoolean("Bukkit.isConverted", true); } // CraftBukkit end