Skip to content

Commit

Permalink
Fix race condition when destroy entities on 1.7 (#539)
Browse files Browse the repository at this point in the history
  • Loading branch information
ItsClairton authored Aug 11, 2024
1 parent 5b1dcf6 commit 8c4efbb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public void register() {
for (List<Integer> part : parts) {
final PacketWrapper destroy = PacketWrapper.create(ClientboundPackets1_7_2_5.REMOVE_ENTITIES, wrapper.user());
destroy.write(RewindTypes.INT_ARRAY, part.stream().mapToInt(Integer::intValue).toArray());
destroy.scheduleSend(Protocol1_8To1_7_6_10.class);
destroy.send(Protocol1_8To1_7_6_10.class);
}
});
protocol.registerClientbound(ClientboundPackets1_8.SET_ENTITY_DATA, new PacketHandlers() {
Expand Down

0 comments on commit 8c4efbb

Please sign in to comment.