fix: copy packet buffer in ClientOnEntityLoad to fix a weird crash
This commit is contained in:
parent
38394d5c28
commit
22a7d5b036
1 changed files with 1 additions and 1 deletions
|
@ -81,7 +81,7 @@ public class KnockdownsClient implements ClientModInitializer {
|
||||||
PacketByteBuf buf = PacketByteBufs.create();
|
PacketByteBuf buf = PacketByteBufs.create();
|
||||||
buf.writeUuid(entity.getUuid());
|
buf.writeUuid(entity.getUuid());
|
||||||
|
|
||||||
ClientPlayNetworking.send(KnockdownsNetworkingConstants.C2S_REQUEST_PLAYER_KNOCKED_DOWN, buf);
|
ClientPlayNetworking.send(KnockdownsNetworkingConstants.C2S_REQUEST_PLAYER_KNOCKED_DOWN, PacketByteBufs.copy(buf));
|
||||||
ClientPlayNetworking.send(KnockdownsNetworkingConstants.C2S_REQUEST_PLAYER_REVIVING, buf);
|
ClientPlayNetworking.send(KnockdownsNetworkingConstants.C2S_REQUEST_PLAYER_REVIVING, buf);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Reference in a new issue