Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Coderx-Gamer authored Jun 12, 2023
1 parent a51abb2 commit 5a4a1ad
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
8 changes: 4 additions & 4 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ org.gradle.jvmargs=-Xmx2G

# Fabric Properties
# check these on https://fabricmc.net/develop
minecraft_version=1.20
yarn_mappings=1.20+build.1
minecraft_version=1.20.1
yarn_mappings=1.20.1+build.1
loader_version=0.14.21

# Mod Properties
mod_version = 1.3.0
mod_version = 1.3.1
maven_group = org.uiutils
archives_base_name = uiutils

# Dependencies
fabric_version=0.83.0+1.20
fabric_version=0.83.0+1.20.1
6 changes: 4 additions & 2 deletions src/main/java/org/uiutils/MainClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ public static void createWidgets(MinecraftClient mc, Screen screen, TextRenderer
}).width(160).position(5, 155).build());

// register "fabricate packet" button in all HandledScreens
screen.addDrawableChild(ButtonWidget.builder(Text.of("Fabricate packet"), (button) -> {
ButtonWidget fabricatePacketButton = ButtonWidget.builder(Text.of("Fabricate packet"), (button) -> {
// creates a gui allowing you to fabricate packets

JFrame frame = new JFrame("Choose Packet");
Expand Down Expand Up @@ -390,7 +390,9 @@ public static void createWidgets(MinecraftClient mc, Screen screen, TextRenderer
frame.add(clickSlotButton);
frame.add(buttonClickButton);
frame.setVisible(true);
}).width(115).position(5, 185).build());
}).width(115).position(5, 185).build();
fabricatePacketButton.active = !isMac;
screen.addDrawableChild(fabricatePacketButton);

screen.addDrawableChild(ButtonWidget.builder(Text.of("Copy GUI Title JSON"), (button) -> {
try {
Expand Down

0 comments on commit 5a4a1ad

Please sign in to comment.