Skip to content

Commit 2832f2e

Browse files
committed
Fix #45: equipment changes should not be run when sending pairing changes
1 parent b67fb7d commit 2832f2e

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

shreddedpaper-server/minecraft-patches/sources/net/minecraft/server/level/ServerEntity.java.patch

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,12 @@
1616
}
1717
}
1818

19+
@@ -352,7 +_,7 @@
20+
if (!list.isEmpty()) {
21+
consumer.accept(new ClientboundSetEquipmentPacket(this.entity.getId(), list, true)); // Paper - data sanitization
22+
}
23+
- ((LivingEntity) this.entity).detectEquipmentUpdates(); // CraftBukkit - SPIGOT-3789: sync again immediately after sending
24+
+ // ((LivingEntity) this.entity).detectEquipmentUpdates(); // CraftBukkit - SPIGOT-3789: sync again immediately after sending // ShreddedPaper - why? - equipment changes should not be run when sending pairing changes
25+
}
26+
27+
if (!this.entity.getPassengers().isEmpty()) {

0 commit comments

Comments
 (0)