Skip to content

Commit

Permalink
feat
Browse files Browse the repository at this point in the history
  • Loading branch information
zly2006 committed Jun 25, 2024
1 parent cd40941 commit 78fbd81
Showing 1 changed file with 24 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,30 @@ public void toPacket(PacketByteBuf output)
Servux.logger.error("ServuxEntitiesPacket#toPacket: error writing buffer data to packet: [{}]", e.getLocalizedMessage());
}
}
case PACKET_S2C_BLOCK_NBT_RESPONSE_SIMPLE ->
{
try
{
output.writeBlockPos(this.pos);
output.writeNbt(this.nbt);
}
catch (Exception e)
{
Servux.logger.error("ServuxEntitiesPacket#toPacket: error writing Block Entity Response to packet: [{}]", e.getLocalizedMessage());
}
}
case PACKET_S2C_ENTITY_NBT_RESPONSE_SIMPLE ->
{
try
{
output.writeVarInt(this.entityId);
output.writeNbt(this.nbt);
}
catch (Exception e)
{
Servux.logger.error("ServuxEntitiesPacket#toPacket: error writing Entity Response to packet: [{}]", e.getLocalizedMessage());
}
}
default ->
{
// Write NBT
Expand Down

0 comments on commit 78fbd81

Please sign in to comment.