Signs allow color codes

This commit is contained in:
William Blake Galbreath
2025-01-12 13:35:04 -08:00
committed by granny
parent bd481eeb28
commit 9532ff01ee
5 changed files with 86 additions and 101 deletions

View File

@@ -89,6 +89,14 @@
}
((ServerLevel)this.level()).updateSleepingPlayerList();
@@ -1709,6 +_,7 @@
@Override
public void openTextEdit(SignBlockEntity signEntity, boolean isFrontText) {
+ if (level().purpurConfig.signAllowColors) this.connection.send(signEntity.getTranslatedUpdatePacket(textFilteringEnabled, isFrontText)); // Purpur - Signs allow color codes
this.connection.send(new ClientboundBlockUpdatePacket(this.level(), signEntity.getBlockPos()));
this.connection.send(new ClientboundOpenSignEditorPacket(signEntity.getBlockPos(), isFrontText));
}
@@ -2014,6 +_,26 @@
this.lastSentExp = -1; // CraftBukkit - Added to reset
}