Skip to content

Commit

Permalink
Fix ClassLookups not being setup (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lauriichan authored Apr 10, 2022
1 parent f67c301 commit 6418571
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

import net.sourcewriters.minecraft.vcompat.provider.VersionControl;
import net.sourcewriters.minecraft.vcompat.provider.lookup.ClassLookupProvider;
import net.sourcewriters.minecraft.vcompat.provider.lookup.ClassLookups;
import net.sourcewriters.minecraft.vcompat.provider.lookup.handle.ClassLookup;
import net.sourcewriters.minecraft.vcompat.version.Versions;

Expand All @@ -23,6 +24,7 @@ public static VersionCompatProvider get() {
throw new IllegalStateException("Can't initialize VersionCompatProvider!");
}
VersionCompatProvider provider = PROVIDER.replace((VersionCompatProvider) object).lock().get();
ClassLookups.globalSetup(provider.getLookupProvider());
try {
provider.init();
} catch (Exception exception) {
Expand Down

0 comments on commit 6418571

Please sign in to comment.