From 5a8ce7f0063528673a353366940570eb6b6a5cec Mon Sep 17 00:00:00 2001 From: Mariell Hoversholm Date: Fri, 1 Jan 2021 14:35:38 +0100 Subject: [PATCH] Fix sign lazy initialisation Fixes PaperMC/Paper#4975 --- ...to-get-a-BlockState-without-a-snapshot.patch | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/Spigot-Server-Patches/API-to-get-a-BlockState-without-a-snapshot.patch b/Spigot-Server-Patches/API-to-get-a-BlockState-without-a-snapshot.patch index 96e8d48ac2..64f87ae33d 100644 --- a/Spigot-Server-Patches/API-to-get-a-BlockState-without-a-snapshot.patch +++ b/Spigot-Server-Patches/API-to-get-a-BlockState-without-a-snapshot.patch @@ -130,23 +130,6 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 } private T createSnapshot(T tileEntity) { -diff --git a/src/main/java/org/bukkit/craftbukkit/block/CraftSign.java b/src/main/java/org/bukkit/craftbukkit/block/CraftSign.java -index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644 ---- a/src/main/java/org/bukkit/craftbukkit/block/CraftSign.java -+++ b/src/main/java/org/bukkit/craftbukkit/block/CraftSign.java -@@ -0,0 +0,0 @@ public class CraftSign extends CraftBlockEntityState implements - - public CraftSign(final Block block) { - super(block, TileEntitySign.class); -+ if (lines == null) { lines = new String[]{"", "", "", ""}; } // Paper - } - - public CraftSign(final Material material, final TileEntitySign te) { - super(material, te); -+ if (lines == null) { lines = new String[]{"", "", "", ""}; } // Paper - } - - @Override diff --git a/src/main/java/org/bukkit/craftbukkit/persistence/CraftPersistentDataContainer.java b/src/main/java/org/bukkit/craftbukkit/persistence/CraftPersistentDataContainer.java index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644 --- a/src/main/java/org/bukkit/craftbukkit/persistence/CraftPersistentDataContainer.java