Fix vanilla map decorations sending when not dirty (#12098)

This commit is contained in:
Warrior
2025-02-12 23:13:34 +01:00
committed by GitHub
parent 072a8317b2
commit 1be2e5f311

View File

@@ -193,7 +193,7 @@
Collection<MapDecoration> collection;
- if (this.dirtyDecorations && this.tick++ % 5 == 0) {
+ if ((true || this.dirtyDecorations) && this.tick++ % 5 == 0) { // CraftBukkit - custom maps don't update this yet // TODO fix this
+ if ((!vanillaMaps || this.dirtyDecorations) && this.tick++ % 5 == 0) { // Paper - bypass dirtyDecorations for custom maps
this.dirtyDecorations = false;
- collection = MapItemSavedData.this.decorations.values();
+ // CraftBukkit start