Skip to content

Commit

Permalink
Fixed crash on the Multiplayer Screen
Browse files Browse the repository at this point in the history
  • Loading branch information
Minenash committed Jun 9, 2021
1 parent 85e86cc commit de80370
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ org.gradle.jvmargs=-Xmx1G
fabric_version=0.34.8+1.17

# Mod Properties
mod_version = 1.3.4+1.17
mod_version = 1.3.5+1.17
maven_group = com.minenash
archives_base_name = seamless-loading-screen
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ public abstract class AddServerScreenMixin extends Screen {

protected AddServerScreenMixin(Text title) { super(title); }

@Redirect(method = "init", at = @At(value = "NEW", target = "net/minecraft/client/gui/widget/ButtonWidget", ordinal = 1))
@Redirect(method = "init", at = @At(value = "NEW", target = "net/minecraft/client/gui/widget/ButtonWidget", ordinal = 0))
private ButtonWidget buttonAdd(int x, int y, int width, int height, Text message, ButtonWidget.PressAction onPress) {
return new ButtonWidget(x+103,y+24,width-103,height,message,onPress);
}

@Redirect(method = "init", at = @At(value = "NEW", target = "net/minecraft/client/gui/widget/ButtonWidget", ordinal = 2))
@Redirect(method = "init", at = @At(value = "NEW", target = "net/minecraft/client/gui/widget/ButtonWidget", ordinal = 1))
private ButtonWidget buttonCancel(int x, int y, int width, int height, Text message, ButtonWidget.PressAction onPress) {
return new ButtonWidget(x,y,width-103,height,message,onPress);
}
Expand Down

0 comments on commit de80370

Please sign in to comment.