Skip to content

Commit

Permalink
Fix fresh installs on 1.16.x
Browse files Browse the repository at this point in the history
Little bit of an oversight
Fixes modmuss50#225
Fixes modmuss50#226
Fixes modmuss50#227
  • Loading branch information
Chocohead committed Jun 2, 2021
1 parent 59cccca commit 162b14f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ loader_version=0.10.8
fabric_version=0.31.0+1.16
fabric_asm_version=v2.2

mod_version = 1.10.1
mod_version = 1.10.2
maven_group = me.modmuss50
archives_base_name = optifabric
6 changes: 4 additions & 2 deletions src/main/java/me/modmuss50/optifabric/mod/OptifineSetup.java
Original file line number Diff line number Diff line change
Expand Up @@ -209,8 +209,10 @@ private static IMappingProvider createMappings(String from, String to) {
});

ClassDef clientEntityHandler = nameToClass.get("net/minecraft/class_638$class_5612");
ClassDef clientWorld = nameToClass.get("net/minecraft/class_638");
extraFields.put(new Member(clientEntityHandler.getName(from), "this$0", 'L' + clientWorld.getName(from) + ';'), "field_27735");
if (clientEntityHandler != null) {//Only present in 1.17.x (20w45a+)
ClassDef clientWorld = nameToClass.get("net/minecraft/class_638");
extraFields.put(new Member(clientEntityHandler.getName(from), "this$0", 'L' + clientWorld.getName(from) + ';'), "field_27735");
}

//In dev
if (FabricLoader.getInstance().isDevelopmentEnvironment()) {
Expand Down

0 comments on commit 162b14f

Please sign in to comment.