3
0
Mirror von https://github.com/ViaVersion/ViaVersion.git synchronisiert 2024-12-27 08:30:09 +01:00

Update missing filterFamily method name change

Dieser Commit ist enthalten in:
Nassim Jahnke 2024-01-12 16:01:30 +01:00
Ursprung 05470c5f1b
Commit 0946c72bdc
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: EF6771C01F6EF02F

Datei anzeigen

@ -111,13 +111,12 @@ public final class EntityPacketRewriter1_20_5 extends EntityRewriter<Clientbound
@Override
protected void registerRewrites() {
filter().handler((event, meta) -> {
int id = meta.metaType().typeId();
filter().mapMetaType(typeId -> {
int id = typeId;
if (id >= Types1_20_5.META_TYPES.armadilloState.typeId()) {
id++;
}
meta.setMetaType(Types1_20_5.META_TYPES.byId(id));
return Types1_20_5.META_TYPES.byId(id);
});
registerMetaTypeHandler(
@ -127,7 +126,7 @@ public final class EntityPacketRewriter1_20_5 extends EntityRewriter<Clientbound
Types1_20_5.META_TYPES.particleType
);
filter().filterFamily(EntityTypes1_20_5.MINECART_ABSTRACT).index(11).handler((event, meta) -> {
filter().type(EntityTypes1_20_5.MINECART_ABSTRACT).index(11).handler((event, meta) -> {
final int blockState = meta.value();
meta.setValue(protocol.getMappingData().getNewBlockStateId(blockState));
});