Skip to content

Commit b92ce71

Browse files
committed
fix: send container slot updates only to the owning spectator
1 parent 45be024 commit b92ce71

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fabric/src/main/java/com/hpfxd/spectatorplus/fabric/sync/handler/ContainerSyncHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ public void slotChanged(@NotNull AbstractContainerMenu menu, int slotIndex, @Not
9696
update[i] = null;
9797
}
9898
}
99-
ServerSyncController.broadcastPacketToSpectators(target, new ClientboundContainerSyncPacket(
99+
ServerSyncController.sendPacket(spectator, new ClientboundContainerSyncPacket(
100100
target.getUUID(),
101101
menu.getType(),
102102
update.length,

0 commit comments

Comments
 (0)