From cf16a1eeb499a3c5fc7dca75c8ea90da9a107484 Mon Sep 17 00:00:00 2001 From: Warrior <50800980+Warriorrrr@users.noreply.github.com> Date: Thu, 10 Aug 2023 15:22:40 +0200 Subject: [PATCH] Make the cursor limit option apply to banners (#9554) --- patches/server/Limit-item-frame-cursors-on-maps.patch | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/patches/server/Limit-item-frame-cursors-on-maps.patch b/patches/server/Limit-item-frame-cursors-on-maps.patch index f3f70bcdf2..5f8cf287d7 100644 --- a/patches/server/Limit-item-frame-cursors-on-maps.patch +++ b/patches/server/Limit-item-frame-cursors-on-maps.patch @@ -19,3 +19,12 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 } CompoundTag nbttagcompound = stack.getTag(); +@@ -0,0 +0,0 @@ public class MapItemSavedData extends SavedData { + return true; + } + +- if (!this.isTrackedCountOverLimit(256)) { ++ if (!this.isTrackedCountOverLimit(((Level) world).paperConfig().maps.itemFrameCursorLimit)) { // Paper + this.bannerMarkers.put(mapiconbanner.getId(), mapiconbanner); + this.addDecoration(mapiconbanner.getDecoration(), world, mapiconbanner.getId(), d0, d1, 180.0D, mapiconbanner.getName()); + return true;