Skip to content

Commit 1617724

Browse files
fix: MinecraftOptionUtils called wrong setter
Signed-off-by: Duy Tran <40482367+khanhduytran0@users.noreply.github.com>
1 parent 0e98ca0 commit 1617724

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Natives/MinecraftOptionUtils.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ @implementation MinecraftOptionUtils
1010
+ (void)setupOptionsAtGameDir:(NSString *)gameDir {
1111
NSAssert(windowWidth > 0 && windowHeight > 0, @"called before setting windowWidth/windowHeight?");
1212
MinecraftOptionUtils *options = [MinecraftOptionUtils sharedInstance];
13-
[options loadFromPath:[gameDir stringByAppendingPathComponent:@"options.txt"]];
13+
options.optionsPath = [gameDir stringByAppendingPathComponent:@"options.txt"];
1414
// initial gui scale, also implicitly calls load
1515
[options updateMCGuiScale];
1616
[options setKey:@"fullscreen" value:@"false"];

0 commit comments

Comments
 (0)