Make the cursor limit option apply to banners (#9554)

This commit is contained in:
Warrior 2023-08-10 15:22:40 +02:00
parent 7843c4c1f1
commit cf16a1eeb4

View File

@ -19,3 +19,12 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
} }
CompoundTag nbttagcompound = stack.getTag(); 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;