mirror of
https://github.com/Minestom/Minestom.git
synced 2025-02-11 01:41:47 +01:00
fix: update place block packet
This commit is contained in:
parent
1315161776
commit
00d198abe7
@ -10,10 +10,10 @@ import org.jetbrains.annotations.NotNull;
|
||||
|
||||
import static net.minestom.server.network.NetworkBuffer.*;
|
||||
|
||||
public record ClientPlayerBlockPlacementPacket(@NotNull PlayerHand hand, @NotNull Point blockPosition,
|
||||
@NotNull BlockFace blockFace,
|
||||
float cursorPositionX, float cursorPositionY, float cursorPositionZ,
|
||||
boolean insideBlock, int sequence) implements ClientPacket {
|
||||
public record ClientPlayerBlockPlacementPacket(
|
||||
@NotNull PlayerHand hand, @NotNull Point blockPosition, @NotNull BlockFace blockFace,
|
||||
float cursorPositionX, float cursorPositionY, float cursorPositionZ,
|
||||
boolean insideBlock, boolean hitWorldBorder, int sequence) implements ClientPacket {
|
||||
public static final NetworkBuffer.Type<ClientPlayerBlockPlacementPacket> SERIALIZER = NetworkBufferTemplate.template(
|
||||
Enum(PlayerHand.class), ClientPlayerBlockPlacementPacket::hand,
|
||||
BLOCK_POSITION, ClientPlayerBlockPlacementPacket::blockPosition,
|
||||
@ -22,6 +22,7 @@ public record ClientPlayerBlockPlacementPacket(@NotNull PlayerHand hand, @NotNul
|
||||
FLOAT, ClientPlayerBlockPlacementPacket::cursorPositionY,
|
||||
FLOAT, ClientPlayerBlockPlacementPacket::cursorPositionZ,
|
||||
BOOLEAN, ClientPlayerBlockPlacementPacket::insideBlock,
|
||||
BOOLEAN, ClientPlayerBlockPlacementPacket::hitWorldBorder,
|
||||
VAR_INT, ClientPlayerBlockPlacementPacket::sequence,
|
||||
ClientPlayerBlockPlacementPacket::new);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user