Skip to content

Commit

Permalink
Updated Via API usage
Browse files Browse the repository at this point in the history
  • Loading branch information
RaphiMC committed May 5, 2024
1 parent bd9296f commit bb669cd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ repositories {
}

dependencies {
compileOnly "com.viaversion:viaversion-common:4.10.0"
compileOnly "com.viaversion:viabackwards-common:4.10.0"
compileOnly "com.viaversion:viaversion-common:4.10.1-SNAPSHOT"
compileOnly "com.viaversion:viabackwards-common:4.10.1-SNAPSHOT"
compileOnly "org.yaml:snakeyaml:2.2"
compileOnly "com.google.guava:guava:33.2.0-jre"
compileOnly "io.netty:netty-handler:4.1.109.Final"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ public class MetadataRewriter1_16to20w14infinite extends EntityRewriter<Clientbo

public MetadataRewriter1_16to20w14infinite(Protocol1_16to20w14infinite protocol) {
super(protocol);
mapEntityType(Entity20w14infiniteTypes.ZOMBIE_PIGMAN, EntityTypes1_16.ZOMBIFIED_PIGLIN);
mapTypes(Entity20w14infiniteTypes.values(), EntityTypes1_16.class);
}

@Override
Expand All @@ -45,6 +43,12 @@ protected void registerRewrites() {
filter().type(EntityTypes1_16.ABSTRACT_ARROW).removeIndex(8);
}

@Override
public void onMappingDataLoaded() {
mapTypes();
mapEntityType(Entity20w14infiniteTypes.ZOMBIE_PIGMAN, EntityTypes1_16.ZOMBIFIED_PIGLIN);
}

@Override
public EntityType typeFromId(int type) {
return EntityTypes1_16.getTypeFromId(type);
Expand Down

0 comments on commit bb669cd

Please sign in to comment.