Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-12-28 17:10:13 +01:00
Update missing filterFamily method name change
Dieser Commit ist enthalten in:
Ursprung
05470c5f1b
Commit
0946c72bdc
@ -111,13 +111,12 @@ public final class EntityPacketRewriter1_20_5 extends EntityRewriter<Clientbound
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void registerRewrites() {
|
protected void registerRewrites() {
|
||||||
filter().handler((event, meta) -> {
|
filter().mapMetaType(typeId -> {
|
||||||
int id = meta.metaType().typeId();
|
int id = typeId;
|
||||||
if (id >= Types1_20_5.META_TYPES.armadilloState.typeId()) {
|
if (id >= Types1_20_5.META_TYPES.armadilloState.typeId()) {
|
||||||
id++;
|
id++;
|
||||||
}
|
}
|
||||||
|
return Types1_20_5.META_TYPES.byId(id);
|
||||||
meta.setMetaType(Types1_20_5.META_TYPES.byId(id));
|
|
||||||
});
|
});
|
||||||
|
|
||||||
registerMetaTypeHandler(
|
registerMetaTypeHandler(
|
||||||
@ -127,7 +126,7 @@ public final class EntityPacketRewriter1_20_5 extends EntityRewriter<Clientbound
|
|||||||
Types1_20_5.META_TYPES.particleType
|
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();
|
final int blockState = meta.value();
|
||||||
meta.setValue(protocol.getMappingData().getNewBlockStateId(blockState));
|
meta.setValue(protocol.getMappingData().getNewBlockStateId(blockState));
|
||||||
});
|
});
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren