mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2025-01-20 14:31:23 +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) {
|
public void registerBlockEvent(C packetType) {
|
||||||
|
protocol.registerClientbound(packetType, wrapper -> {
|
||||||
if (protocol.getMappingData().getBlockMappings() == null) {
|
if (protocol.getMappingData().getBlockMappings() == null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
protocol.registerClientbound(packetType, wrapper -> {
|
|
||||||
wrapper.passthrough(positionType); // Location
|
wrapper.passthrough(positionType); // Location
|
||||||
wrapper.passthrough(Types.UNSIGNED_BYTE); // Action id
|
wrapper.passthrough(Types.UNSIGNED_BYTE); // Action id
|
||||||
wrapper.passthrough(Types.UNSIGNED_BYTE); // Action param
|
wrapper.passthrough(Types.UNSIGNED_BYTE); // Action param
|
||||||
|
Loading…
Reference in New Issue
Block a user