#1238: Remove unnecessary sign ticking

By: Miles Holder <mwholder2005@gmail.com>
This commit is contained in:
CraftBukkit/Spigot
2023-12-17 09:29:48 +11:00
parent 6f023adfe9
commit bbb64e5e0e
4 changed files with 39 additions and 1 deletions

View File

@@ -132,7 +132,17 @@
}
@Override
@@ -281,7 +342,7 @@
@@ -276,12 +337,17 @@
@Nullable
public UUID getPlayerWhoMayEdit() {
+ // CraftBukkit start - unnecessary sign ticking removed, so do this lazily
+ if (this.level != null && this.playerWhoMayEdit != null) {
+ clearInvalidPlayerWhoMayEdit(this, this.level, this.playerWhoMayEdit);
+ }
+ // CraftBukkit end
return this.playerWhoMayEdit;
}
private void markUpdated() {
this.setChanged();