mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-08 08:02:13 -07:00
Update to Minecraft 1.14.2
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
-public class TileEntitySign extends TileEntity {
|
||||
+public class TileEntitySign extends TileEntity implements ICommandListener { // CraftBukkit - implements
|
||||
|
||||
public final IChatBaseComponent[] lines = new IChatBaseComponent[] { new ChatComponentText(""), new ChatComponentText(""), new ChatComponentText(""), new ChatComponentText("")};
|
||||
public final IChatBaseComponent[] lines = new IChatBaseComponent[]{new ChatComponentText(""), new ChatComponentText(""), new ChatComponentText(""), new ChatComponentText("")};
|
||||
private int c = -1;
|
||||
@@ -29,6 +29,12 @@
|
||||
nbttagcompound.setString("Text" + (i + 1), s);
|
||||
@@ -44,7 +44,7 @@
|
||||
|
||||
- if (this.world instanceof WorldServer) {
|
||||
- try {
|
||||
- this.lines[i] = ChatComponentUtils.filterForDisplay(this.a((EntityPlayer) null), ichatbasecomponent, (Entity) null);
|
||||
- this.lines[i] = ChatComponentUtils.filterForDisplay(this.a((EntityPlayer) null), ichatbasecomponent, (Entity) null, 0);
|
||||
- } catch (CommandSyntaxException commandsyntaxexception) {
|
||||
+ if (oldSign) {
|
||||
+ lines[i] = org.bukkit.craftbukkit.util.CraftChatMessage.fromString(s)[0];
|
||||
@@ -54,7 +54,7 @@
|
||||
+
|
||||
+ if (this.world instanceof WorldServer) {
|
||||
+ try {
|
||||
+ this.lines[i] = ChatComponentUtils.filterForDisplay(this.a((EntityPlayer) null), ichatbasecomponent, (Entity) null);
|
||||
+ this.lines[i] = ChatComponentUtils.filterForDisplay(this.a((EntityPlayer) null), ichatbasecomponent, (Entity) null, 0);
|
||||
+ } catch (CommandSyntaxException commandsyntaxexception) {
|
||||
+ this.lines[i] = ichatbasecomponent;
|
||||
+ }
|
||||
|
Reference in New Issue
Block a user