Fix BlockRewriter block event handling (#4282)

This commit is contained in:
Valaphee The Meerkat 2024-11-26 15:53:44 +01:00 committed by GitHub
parent e32205ddaf
commit 1785677901
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -67,11 +67,11 @@ public class BlockRewriter<C extends ClientboundPacketType> {
}
public void registerBlockEvent(C packetType) {
protocol.registerClientbound(packetType, wrapper -> {
if (protocol.getMappingData().getBlockMappings() == null) {
return;
}
protocol.registerClientbound(packetType, wrapper -> {
wrapper.passthrough(positionType); // Location
wrapper.passthrough(Types.UNSIGNED_BYTE); // Action id
wrapper.passthrough(Types.UNSIGNED_BYTE); // Action param