Skip to content

Commit c7be342

Browse files
authored
Merge pull request #37 from Basicprogrammer10/update-mc-1.20.2
Update to Minecraft 1.20.2
2 parents 2d05df2 + 0112873 commit c7be342

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+268
-175
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# SigmaUtils ![build](https://github.com/Basicprogrammer10/SigmaUtils/actions/workflows/build.yml/badge.svg) ![GitHub release (latest SemVer including pre-releases)](https://img.shields.io/github/v/release/Basicprogrammer10/SigmaUtils?include_prereleases) ![GitHub all releases](https://img.shields.io/github/downloads/Basicprogrammer10/SigmaUtils/total)
22

3-
Requires: <kbd>[Minecraft 1.20.1](https://minecraft.fandom.com/wiki/Java_Edition_1.20.1)</kbd> <kbd>[Fabric API](https://modrinth.com/mod/fabric-api/version/0.75.3+1.19.4)</kbd>
3+
Requires: <kbd>[Minecraft 1.20.2](https://minecraft.fandom.com/wiki/Java_Edition_1.20.2)</kbd> <kbd>[Fabric API](https://modrinth.com/mod/fabric-api/version/0.89.2+1.20.2)</kbd>
44

5-
SigmaUtils is a utility mod for Minecraft 1.20.1.
5+
SigmaUtils is a utility mod for Minecraft 1.20.2.
66
It is made up of 'modules', which are discrete features that can be toggled and configured.
77
By default, SigmaUtils changes nothing about the game, except adding a button to the title screen to open the config
88
GUI.

gradle.properties

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
# Done to increase the memory available to gradle.
22
org.gradle.jvmargs=-Xmx1G
33
# Fabric Properties
4-
minecraft_version=1.20.1
5-
yarn_mappings=1.20.1+build.8
6-
loader_version=0.14.21
4+
minecraft_version=1.20.2
5+
yarn_mappings=1.20.2+build.2
6+
loader_version=0.14.22
77
# Mod Properties
8-
mod_version=0.1.6-alpha
8+
mod_version=0.1.7-alpha
99
maven_group=com.connorcode
1010
archives_base_name=sigma-utils
1111
# Dependencies
12-
fabric_version=0.84.0+1.20.1
13-
mod_menu_version=7.1.0
12+
fabric_version=0.89.2+1.20.2
13+
mod_menu_version=8.0.0

src/main/java/com/connorcode/sigmautils/commands/About.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313
import static com.connorcode.sigmautils.SigmaUtils.client;
1414

15+
1516
public class About implements Command {
1617
public void register(CommandDispatcher<FabricClientCommandSource> dispatcher) {
1718
dispatcher.register(ClientCommandManager.literal("util")

src/main/java/com/connorcode/sigmautils/commands/Dump.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ int execute(CommandContext<FabricClientCommandSource> context) throws IOExceptio
6767
.append(i.getSimpleName())
6868
.append("\n");
6969
Files.write(dumps.toPath().resolve("packets.txt"), out.toString().getBytes());
70+
context.getSource().sendFeedback(Text.of("Dumped packets to " + dumps.toPath().resolve("packets.txt")));
7071
return 0;
7172
}
7273

@@ -91,6 +92,7 @@ int execute(CommandContext<FabricClientCommandSource> context) throws IOExceptio
9192

9293
Files.write(file.toPath(), text.toString().getBytes());
9394
}
95+
context.getSource().sendFeedback(Text.of("Dumped docs to " + docs.toPath()));
9496
}
9597

9698
return 0;

src/main/java/com/connorcode/sigmautils/commands/Note.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ protected void init() {
143143

144144
@Override
145145
public void render(DrawContext drawContext, int mouseX, int mouseY, float delta) {
146-
renderBackground(drawContext);
146+
renderBackground(drawContext, mouseX, mouseY, delta);
147147

148148
var lines = textRenderer.wrapLines(StringVisitable.plain(note.text), noteWidth);
149149
var startX = width / 2f - noteWidth / 2f;

src/main/java/com/connorcode/sigmautils/commands/PlayerCommand.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
import static com.mojang.brigadier.arguments.IntegerArgumentType.getInteger;
99
import static com.mojang.brigadier.arguments.IntegerArgumentType.integer;
1010

11+
1112
public class PlayerCommand implements Command {
1213
@Override
1314
public void register(CommandDispatcher<FabricClientCommandSource> dispatcher) {

src/main/java/com/connorcode/sigmautils/config/Config.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323

2424
import static com.connorcode.sigmautils.SigmaUtils.*;
2525

26+
2627
public class Config {
2728
public static final File configFile = new File(directory.toFile(), "config.nbt");
2829
static final KeyBinding configKeybinding = KeyBindingHelper.registerKeyBinding(

src/main/java/com/connorcode/sigmautils/config/ConfigGui.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ protected void init() {
6565

6666
public void render(DrawContext drawContext, int mouseX, int mouseY, float delta) {
6767
int padding = getPadding();
68-
this.renderBackground(drawContext);
68+
this.renderBackground(drawContext, mouseX, mouseY, delta);
6969

7070
for (int x = 0; x < Category.realValues().length; x++)
7171
drawContext.drawCenteredTextWithShadow(textRenderer,

src/main/java/com/connorcode/sigmautils/config/ModuleConfigGui.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public void render(DrawContext drawContext, int mouseX, int mouseY, float delta)
8585
Setting.RenderData renderData = new Setting.RenderData(this, drawContext, mouseX, mouseY, delta);
8686
int padding = getPadding();
8787

88-
this.renderBackground(drawContext);
88+
this.renderBackground(drawContext, mouseX, mouseY, delta);
8989
super.render(drawContext, mouseX, mouseY, delta);
9090

9191
int x = -75 + 20 + padding;

src/main/java/com/connorcode/sigmautils/config/settings/DynamicListSetting.java

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -171,11 +171,6 @@ protected void init() {
171171
}
172172
}
173173

174-
@Override
175-
public void tick() {
176-
this.searchField.tick();
177-
}
178-
179174
private boolean search(K resource, String search) {
180175
var finalSearch = search.toLowerCase(Locale.ROOT);
181176
return Arrays.stream(renderer.getSearch(resource)).anyMatch(s -> s.contains(finalSearch));
@@ -188,7 +183,7 @@ public void close() {
188183

189184
@Override
190185
public void render(DrawContext drawContext, int mouseX, int mouseY, float delta) {
191-
renderBackground(drawContext);
186+
renderBackground(drawContext, mouseX, mouseY, delta);
192187
super.render(drawContext, mouseX, mouseY, delta);
193188
this.searchField.render(drawContext, mouseX, mouseY, delta);
194189
}
@@ -267,7 +262,7 @@ public void close() {
267262

268263
@Override
269264
public void render(DrawContext drawContext, int mouseX, int mouseY, float delta) {
270-
renderBackground(drawContext);
265+
renderBackground(drawContext, mouseX, mouseY, delta);
271266
super.render(drawContext, mouseX, mouseY, delta);
272267
}
273268

0 commit comments

Comments
 (0)