Handle shifted 1.19.4 boat types

This commit is contained in:
Nassim Jahnke 2023-03-18 12:28:00 +01:00
parent 9ccc3aed30
commit f1bde8ba2a
No known key found for this signature in database
GPG Key ID: 6BE3B555EBC5982B

View File

@ -169,6 +169,13 @@ public final class EntityPackets extends EntityRewriter<ClientboundPackets1_19_3
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 added
meta.setValue(boatType + 1);
}
});
filter().filterFamily(Entity1_19_4Types.ABSTRACT_HORSE).removeIndex(18); // Owner UUID
}