CloudburstMC / Protocol

A protocol library for Minecraft Bedrock Edition
https://git.io/ProtocolLib
Apache License 2.0
312 stars 94 forks source link

UpdateBlockSyncedPacket#toString does not show UpdateBlockPacket properties #91

Closed Camotoy closed 2 years ago

Camotoy commented 3 years ago

I made an issue for this since I'm not sure what the cleanest way of fixing this is.

Since UpdateBlockSyncedPacket inherits from UpdateBlockPacket, Lombok's toString does not show the update block fields. Manually adding the @ToString annotation and specifying to call super shows this:

UpdateBlockSyncedPacket(super=UpdateBlockPacket(flags=[NEIGHBORS, NETWORK], blockPosition=(609, 89, 1), runtimeId=134, dataLayer=0), runtimeEntityId=-515396075518, entityBlockSyncType=CREATE)