Skip to content

Commit 8234dbd

Browse files
committed
Revert "Test"
This reverts commit a3dbccf.
1 parent a3dbccf commit 8234dbd

6 files changed

Lines changed: 18 additions & 56 deletions

File tree

build.gradle

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -180,18 +180,9 @@ tasks.register("generateBuildConfig") {
180180
def template =
181181
file("src/main/templates/net/wurstclient/config/BuildConfig.java.in")
182182
def modVersionValue = project.mod_version
183-
def forkReleaseVersion =
184-
(project.findProperty("fork_release_version") ?: "0.0").toString()
185-
def ghRepoId = project.gh_repo_id.toString()
186-
def ghRepoUrl = "https://github.com/${ghRepoId}"
187-
def buildDate = java.time.Instant.now().toString()
188183

189184
inputs.file(template)
190185
inputs.property("niceWurstEnabled", niceWurstEnabled)
191-
inputs.property("forkReleaseVersion", forkReleaseVersion)
192-
inputs.property("ghRepoId", ghRepoId)
193-
inputs.property("ghRepoUrl", ghRepoUrl)
194-
inputs.property("buildDate", buildDate)
195186
outputs.dir(buildConfigOutput)
196187

197188
doLast {
@@ -203,10 +194,6 @@ tasks.register("generateBuildConfig") {
203194
def content = template.getText("UTF-8")
204195
.replace('${NICE_WURST}', String.valueOf(niceWurstEnabled))
205196
.replace('${MOD_VERSION}', modVersionValue)
206-
.replace('${FORK_RELEASE_VERSION}', forkReleaseVersion)
207-
.replace('${BUILD_DATE}', buildDate)
208-
.replace('${GH_REPO_ID}', ghRepoId)
209-
.replace('${GH_REPO_URL}', ghRepoUrl)
210197

211198
def targetFile = new File(targetDir, "BuildConfig.java")
212199
targetFile.setText(content, "UTF-8")

gradle.properties

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ fabric_api_version=0.140.2+1.21.11
1616

1717
# Mod Properties
1818
mod_version=v7.51.4-CevAPI-MC1.21.11
19-
fork_release_version=0.39
2019
maven_group=net.wurstclient
2120
archives_base_name=Wurst-Client
2221
mod_loader=Fabric

src/main/java/net/wurstclient/WurstClient.java

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@
4040
import net.wurstclient.presets.PresetManager;
4141
import net.wurstclient.settings.SettingsFile;
4242
import net.wurstclient.update.ProblematicResourcePackDetector;
43-
import net.wurstclient.update.ForkUpdateChecker;
4443
import net.wurstclient.update.WurstUpdater;
4544
import net.wurstclient.util.PlayerRangeAlertManager;
4645
import net.wurstclient.util.SetbackDetector;
@@ -86,7 +85,6 @@ public enum WurstClient
8685
private boolean enabled = true;
8786
private static boolean guiInitialized;
8887
private WurstUpdater updater;
89-
private ForkUpdateChecker forkUpdateChecker;
9088
private ProblematicResourcePackDetector problematicPackDetector;
9189
private Path wurstFolder;
9290

@@ -169,9 +167,6 @@ public void initialize()
169167
updater = new WurstUpdater();
170168
eventManager.add(UpdateListener.class, updater);
171169

172-
forkUpdateChecker = new ForkUpdateChecker();
173-
eventManager.add(UpdateListener.class, forkUpdateChecker);
174-
175170
problematicPackDetector = new ProblematicResourcePackDetector();
176171
problematicPackDetector.start();
177172

@@ -397,11 +392,6 @@ public WurstUpdater getUpdater()
397392
return updater;
398393
}
399394

400-
public ForkUpdateChecker getForkUpdateChecker()
401-
{
402-
return forkUpdateChecker;
403-
}
404-
405395
public ProblematicResourcePackDetector getProblematicPackDetector()
406396
{
407397
return problematicPackDetector;

src/main/java/net/wurstclient/hacks/SpearAssistHack.java

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -220,10 +220,10 @@ public void update()
220220
private int spearKillFlushCooldown;
221221
private AssistMode lastAssistMode;
222222

223-
public SpearAssistHack()
224-
{
225-
super("SpearAssist");
226-
setCategory(Category.COMBAT);
223+
public SpearAssistHack()
224+
{
225+
super("SpearAssist");
226+
setCategory(Category.COMBAT);
227227
addSetting(assistMode);
228228
addSetting(boostMode);
229229
addSetting(boostSpeed);
@@ -257,16 +257,17 @@ public SpearAssistHack()
257257
addSetting(spearKillLungeDelayModifier);
258258
addSetting(spearKillChatFeedback);
259259

260-
spearKillTargetEntities.clear();
261-
updateModeVisibility();
262-
}
263-
264-
@Override
265-
public String getRenderName()
266-
{
267-
return assistMode.getSelected() == AssistMode.SPEARKILL
268-
? getName() + " [Kill]" : getName();
269-
}
260+
spearKillTargetEntities.clear();
261+
updateModeVisibility();
262+
}
263+
264+
@Override
265+
public String getRenderName()
266+
{
267+
return assistMode.getSelected() == AssistMode.SPEARKILL
268+
? getName() + " [Kill]"
269+
: getName();
270+
}
270271

271272
@Override
272273
protected void onEnable()

src/main/java/net/wurstclient/mixin/TitleScreenMixin.java

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@ public abstract class TitleScreenMixin extends Screen
3232
{
3333
private AbstractWidget realmsButton = null;
3434
private Button wurstOptionsButton;
35-
private int forkInfoX = 4;
36-
private int forkInfoY = 4;
3735

3836
private TitleScreenMixin(WurstClient wurst, Component title)
3937
{
@@ -82,9 +80,6 @@ private void onAddNormalWidgets(int y, int spacingY,
8280
@Inject(at = @At("RETURN"), method = "tick()V")
8381
private void onTick(CallbackInfo ci)
8482
{
85-
if(WurstClient.INSTANCE.getForkUpdateChecker() != null)
86-
WurstClient.INSTANCE.getForkUpdateChecker().startIfNeeded();
87-
8883
if(realmsButton == null || wurstOptionsButton == null)
8984
return;
9085

@@ -100,15 +95,9 @@ private void onRender(GuiGraphics graphics, int mouseX, int mouseY,
10095
{
10196
Font font = minecraft.font;
10297
String brand = NiceWurstModule.isActive() ? "NiceWurst" : "Wurst";
103-
String baseText = brand + " " + BuildConfig.MOD_VERSION + " v"
104-
+ BuildConfig.FORK_RELEASE_VERSION;
105-
String suffix = WurstClient.INSTANCE.getForkUpdateChecker() == null ? ""
106-
: WurstClient.INSTANCE.getForkUpdateChecker().getStatusSuffix();
107-
String text = baseText + suffix;
108-
109-
Component component = Component.literal(text);
110-
graphics.drawString(font, component.getVisualOrderText(), forkInfoX,
111-
forkInfoY, 0xFFFFFFFF, true);
98+
String text = brand + " " + BuildConfig.MOD_VERSION;
99+
graphics.drawString(font, Component.literal(text).getVisualOrderText(),
100+
4, 4, 0xFFFFFFFF, true);
112101
}
113102

114103
/**

src/main/templates/net/wurstclient/config/BuildConfig.java.in

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,4 @@ public final class BuildConfig
66

77
public static final boolean NICE_WURST = ${NICE_WURST};
88
public static final String MOD_VERSION = "${MOD_VERSION}";
9-
public static final String FORK_RELEASE_VERSION = "${FORK_RELEASE_VERSION}";
10-
public static final String BUILD_DATE = "${BUILD_DATE}";
11-
public static final String GH_REPO_ID = "${GH_REPO_ID}";
12-
public static final String GH_REPO_URL = "${GH_REPO_URL}";
139
}

0 commit comments

Comments
 (0)