-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Workaround for SPIGOT-7391 using reflection on TileEntitySign
Spigot 1.20 bug https://hub.spigotmc.org/jira/browse/SPIGOT-7391 is a SpigotMC-specific bug that prevents sign changes from being saved when the sign is opened by the official `Player.openSign()` method. We work around this bug by doing what Spigot should be doing: Setting the sign's player-who-may-edit-sign to the player's UUID. If this reflection call fails, the exception will be discarded silently to avoid interrupting an otherwise working native sign editor, especially on other Bukkit implementations like PaperMC.
- Loading branch information
Showing
2 changed files
with
27 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters