This commit is contained in:
Jason Penilla 2021-06-13 01:40:50 -07:00
parent 41a5f14f9e
commit b8b3c40023
No known key found for this signature in database
GPG key ID: 0E75A301420E48F8

View file

@ -7,23 +7,21 @@ property lookups arent super cheap. they synchronize, validate
and check security managers. and check security managers.
diff --git a/src/main/java/net/minecraft/world/level/block/entity/SignBlockEntity.java b/src/main/java/net/minecraft/world/level/block/entity/SignBlockEntity.java diff --git a/src/main/java/net/minecraft/world/level/block/entity/SignBlockEntity.java b/src/main/java/net/minecraft/world/level/block/entity/SignBlockEntity.java
index 0b26d3ab2db66d6baaa95d1d5f6c756595d31495..8d619e0bf8bcf7d6d4e7f23f11d648ccfb65cac4 100644 index 589fbdd5c86655244aa92a42e5f45747b5c5026e..bc0e5df6c7e4a5784c3194c716dd2bb033aea9e5 100644
--- a/src/main/java/net/minecraft/world/level/block/entity/SignBlockEntity.java --- a/src/main/java/net/minecraft/world/level/block/entity/SignBlockEntity.java
+++ b/src/main/java/net/minecraft/world/level/block/entity/SignBlockEntity.java +++ b/src/main/java/net/minecraft/world/level/block/entity/SignBlockEntity.java
@@ -31,6 +31,7 @@ public class SignBlockEntity extends BlockEntity implements CommandSource { // C @@ -1,4 +1,5 @@
private final FormattedCharSequence[] renderMessages; package net.minecraft.world.level.block.entity;
private DyeColor color;
public java.util.UUID signEditor; // Paper
+ private static final boolean CONVERT_LEGACY_SIGNS = Boolean.getBoolean("convertLegacySigns"); // Paper + private static final boolean CONVERT_LEGACY_SIGNS = Boolean.getBoolean("convertLegacySigns"); // Paper
public SignBlockEntity() { import com.mojang.brigadier.exceptions.CommandSyntaxException;
super(BlockEntityType.SIGN); import java.util.UUID;
@@ -51,7 +52,7 @@ public class SignBlockEntity extends BlockEntity implements CommandSource { // C @@ -66,7 +67,7 @@ public class SignBlockEntity extends BlockEntity implements CommandSource { // C
} }
// CraftBukkit start // CraftBukkit start
- if (Boolean.getBoolean("convertLegacySigns")) { - if (Boolean.getBoolean("convertLegacySigns")) {
+ if (CONVERT_LEGACY_SIGNS) { // Paper + if (CONVERT_LEGACY_SIGNS) { // Paper
tag.putBoolean("Bukkit.isConverted", true); nbt.putBoolean("Bukkit.isConverted", true);
} }
// CraftBukkit end // CraftBukkit end