Skip to content

Commit

Permalink
update to 1.21
Browse files Browse the repository at this point in the history
  • Loading branch information
PinkGoosik committed Jun 16, 2024
1 parent 604569c commit 13258e1
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 17 deletions.
16 changes: 8 additions & 8 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@ org.gradle.jvmargs = -Xmx2G
org.gradle.parallel = true

# Mod Properties
mod_version = 0.7.4+1.20.5
mod_version = 0.7.4+1.21
maven_group = ru.pinkgoosik
archives_base_name = visuality
minecraft_version_range = >=1.20.5 <1.21
minecraft_version_range = >=1.21 <1.22

# Dependencies | Check these on https://fabricmc.net/develop
minecraft_version = 1.20.5
yarn_mappings = 1.20.5+build.1
fabric_loader = 0.15.10
fabric_api = 0.97.6+1.20.5
minecraft_version = 1.21
yarn_mappings = 1.21+build.2
fabric_loader = 0.15.11
fabric_api = 0.100.1+1.21

cloth_config = 14.0.125
modmenu_version = 10.0.0-beta.1
cloth_config = 15.0.127
modmenu_version = 11.0.0-rc.2
2 changes: 1 addition & 1 deletion src/main/java/visuality/VisualityMod.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ public void onInitializeClient() {
}

public static Identifier id(String path) {
return new Identifier(MOD_ID, path);
return Identifier.of(MOD_ID, path);
}
}
8 changes: 4 additions & 4 deletions src/main/java/visuality/particle/WaterCircleParticle.java
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,10 @@ public void buildGeometry(VertexConsumer buffer, Camera camera, float ticks) {
float f5 = this.getMinV();
float f6 = this.getMaxV();
int light = this.getBrightness(ticks);
buffer.vertex(vector3fs[0].x(), vector3fs[0].y(), vector3fs[0].z()).texture(f8, f6).color(this.red, this.green, this.blue, this.alpha).light(light).next();
buffer.vertex(vector3fs[1].x(), vector3fs[1].y(), vector3fs[1].z()).texture(f8, f5).color(this.red, this.green, this.blue, this.alpha).light(light).next();
buffer.vertex(vector3fs[2].x(), vector3fs[2].y(), vector3fs[2].z()).texture(f7, f5).color(this.red, this.green, this.blue, this.alpha).light(light).next();
buffer.vertex(vector3fs[3].x(), vector3fs[3].y(), vector3fs[3].z()).texture(f7, f6).color(this.red, this.green, this.blue, this.alpha).light(light).next();
buffer.vertex(vector3fs[0].x(), vector3fs[0].y(), vector3fs[0].z()).texture(f8, f6).color(this.red, this.green, this.blue, this.alpha).light(light);
buffer.vertex(vector3fs[1].x(), vector3fs[1].y(), vector3fs[1].z()).texture(f8, f5).color(this.red, this.green, this.blue, this.alpha).light(light);
buffer.vertex(vector3fs[2].x(), vector3fs[2].y(), vector3fs[2].z()).texture(f7, f5).color(this.red, this.green, this.blue, this.alpha).light(light);
buffer.vertex(vector3fs[3].x(), vector3fs[3].y(), vector3fs[3].z()).texture(f7, f6).color(this.red, this.green, this.blue, this.alpha).light(light);
}

@Override
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/visuality/registry/HitParticleRegistry.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ public static void reload() {
}

private static Optional<EntityType<?>> getEntityFromString(String id) {
return Registries.ENTITY_TYPE.getOrEmpty(new Identifier(id));
return Registries.ENTITY_TYPE.getOrEmpty(Identifier.of(id));
}

private static Optional<ParticleType<?>> getParticleFromString(String id) {
return Registries.PARTICLE_TYPE.getOrEmpty(new Identifier(id));
return Registries.PARTICLE_TYPE.getOrEmpty(Identifier.of(id));
}

public record Entry(EntityType<?> entity, ParticleEffect particle) {
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/visuality/registry/ShinyArmorRegistry.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ public static void reload() {
}

private static Optional<Item> getItemFromString(String id) {
return Registries.ITEM.getOrEmpty(new Identifier(id));
return Registries.ITEM.getOrEmpty(Identifier.of(id));
}
}
2 changes: 1 addition & 1 deletion src/main/java/visuality/registry/ShinyBlockRegistry.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ public static void reload() {
}

private static Optional<Block> getBlockFromString(String id) {
return Registries.BLOCK.getOrEmpty(new Identifier(id));
return Registries.BLOCK.getOrEmpty(Identifier.of(id));
}
}

0 comments on commit 13258e1

Please sign in to comment.