mirror of
https://github.com/ViaVersion/ViaBackwards.git
synced 2024-11-16 11:15:49 +01:00
Handle shifted 1.19.4 boat types
This commit is contained in:
parent
eb6e9e016a
commit
a07550363e
@ -149,6 +149,13 @@ public final class EntityPackets1_19_4 extends EntityRewriter<ClientboundPackets
|
|||||||
meta.setValue(protocol.getMappingData().getNewBlockStateId(blockState));
|
meta.setValue(protocol.getMappingData().getNewBlockStateId(blockState));
|
||||||
});
|
});
|
||||||
|
|
||||||
|
filter().filterFamily(Entity1_19_4Types.BOAT).index(11).handler((event, meta) -> {
|
||||||
|
final int boatType = meta.value();
|
||||||
|
if (boatType > 4) { // Cherry
|
||||||
|
meta.setValue(boatType - 1);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
filter().type(Entity1_19_4Types.TEXT_DISPLAY).index(22).handler(((event, meta) -> {
|
filter().type(Entity1_19_4Types.TEXT_DISPLAY).index(22).handler(((event, meta) -> {
|
||||||
// Send as custom display name
|
// Send as custom display name
|
||||||
event.setIndex(2);
|
event.setIndex(2);
|
||||||
|
Loading…
Reference in New Issue
Block a user