mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2025-01-03 06:17:43 +01:00
Fix BlockRewriter block event handling (#4282)
This commit is contained in:
parent
e32205ddaf
commit
1785677901
@ -67,11 +67,11 @@ public class BlockRewriter<C extends ClientboundPacketType> {
|
||||
}
|
||||
|
||||
public void registerBlockEvent(C packetType) {
|
||||
if (protocol.getMappingData().getBlockMappings() == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
protocol.registerClientbound(packetType, wrapper -> {
|
||||
if (protocol.getMappingData().getBlockMappings() == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
wrapper.passthrough(positionType); // Location
|
||||
wrapper.passthrough(Types.UNSIGNED_BYTE); // Action id
|
||||
wrapper.passthrough(Types.UNSIGNED_BYTE); // Action param
|
||||
|
Loading…
Reference in New Issue
Block a user