Skip to content

Commit

Permalink
[1.21.3] Fix custom maps not syncing (#1679)
Browse files Browse the repository at this point in the history
  • Loading branch information
GizmoTheMoonPig authored Nov 18, 2024
1 parent 7ae0f3e commit 6acd7e1
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions patches/net/minecraft/server/level/ServerPlayer.java.patch
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,15 @@
if (this.tickCount % 20 == 0) {
CriteriaTriggers.LOCATION.trigger(this);
}
@@ -781,7 +_,7 @@

private void synchronizeSpecialItemUpdates(ItemStack p_372884_) {
MapId mapid = p_372884_.get(DataComponents.MAP_ID);
- MapItemSavedData mapitemsaveddata = MapItem.getSavedData(mapid, this.level());
+ MapItemSavedData mapitemsaveddata = MapItem.getSavedData(p_372884_, this.level());
if (mapitemsaveddata != null) {
Packet<?> packet = mapitemsaveddata.getUpdatePacket(mapid, this);
if (packet != null) {
@@ -850,6 +_,7 @@
@Override
public void die(DamageSource p_9035_) {
Expand Down

0 comments on commit 6acd7e1

Please sign in to comment.