Skip to content
This repository has been archived by the owner on May 5, 2024. It is now read-only.

Commit

Permalink
update release candidate 1
Browse files Browse the repository at this point in the history
  • Loading branch information
nextdayy authored Dec 31, 2021
1 parent d1c0034 commit 60aef2e
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/main/java/com/nxtdelivery/tabulous/Tabulous.java
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public void onWorldLoad(WorldEvent.Load event) {
isSkyblock = false;
hideWhiteNames = false;
isBedWars = false;
},20);
}, 20);
}


Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package com.nxtdelivery.tabulous.command;

import com.nxtdelivery.tabulous.Tabulous;
import gg.essential.api.EssentialAPI;
import gg.essential.api.commands.Command;
import gg.essential.api.commands.DefaultHandler;
import com.nxtdelivery.tabulous.Tabulous;

public class TabulousCommand extends Command {
public TabulousCommand() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

@Mixin(GuiIngameForge.class)
public class GuiIngameForgeMixin {
@ModifyArg(method = "renderPlayerList", at = @At(value = "INVOKE",target = "Lnet/minecraft/client/gui/GuiPlayerTabOverlay;renderPlayerlist(ILnet/minecraft/scoreboard/Scoreboard;Lnet/minecraft/scoreboard/ScoreObjective;)V"),index = 0)
@ModifyArg(method = "renderPlayerList", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/gui/GuiPlayerTabOverlay;renderPlayerlist(ILnet/minecraft/scoreboard/Scoreboard;Lnet/minecraft/scoreboard/ScoreObjective;)V"), index = 0)
public int setWidth(int width) {
switch (TabulousConfig.position) {
default:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
public class GuiIngameMixin {
@Inject(method = "renderBossHealth", at = @At("HEAD"), cancellable = true)
public void cancelBossBar(CallbackInfo ci) {
if(Minecraft.getMinecraft().gameSettings.keyBindPlayerList.isKeyDown()) {
if(TabulousConfig.cancelBossbar) {
if (Minecraft.getMinecraft().gameSettings.keyBindPlayerList.isKeyDown()) {
if (TabulousConfig.cancelBossbar) {
ci.cancel();
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/nxtdelivery/tabulous/mixin/GuiMixin.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
public class GuiMixin {
@Inject(method = "drawRect", at = @At("HEAD"), cancellable = true)
private static void cancelDrawRect(int left, int top, int right, int bottom, int color, CallbackInfo ci) {
if ((float)(color >> 24 & 255) == 0) {
if ((float) (color >> 24 & 255) == 0) {
ci.cancel();
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ public List<NetworkPlayerInfo> removeTabEntries(List<NetworkPlayerInfo> list) {
if (TabulousConfig.hideNPCs && EssentialAPI.getMinecraftUtil().isHypixel()) {
try {
list.removeIf(info -> getPlayerName(info).startsWith("\u00A78[NPC]") || getPlayerName(info).startsWith("\u00a7e[NPC]") || getPlayerName(info).startsWith("\u00a75[NPC]"));
if (!Tabulous.hideWhiteNames && inGame) list.removeIf(info -> !getPlayerName(info).startsWith("\u00a7"));
if (!Tabulous.hideWhiteNames && inGame)
list.removeIf(info -> !getPlayerName(info).startsWith("\u00a7"));
} catch (Exception ignored) {
}
}
Expand Down Expand Up @@ -234,10 +235,10 @@ public void renderNames(Args args) {
if (name.startsWith("[")) {
name = name.substring(name.indexOf("]") + 2);
}
if(!Character.isLetterOrDigit(args.get(0).toString().charAt(2))) {
if (!Character.isLetterOrDigit(args.get(0).toString().charAt(2))) {
name = args.get(0).toString().substring(0, 10) + name;
args.set(0, name);
} else args.set(0,TabulousConfig.myNameText);
} else args.set(0, TabulousConfig.myNameText);
} else if (!TabulousConfig.hideCustomNameIngame) args.set(0, TabulousConfig.myNameText);
else if (!inGame) args.set(0, TabulousConfig.myNameText);

Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package com.nxtdelivery.tabulous.util;

import com.nxtdelivery.tabulous.Tabulous;
import gg.essential.api.EssentialAPI;
import gg.essential.api.gui.ConfirmationModalBuilder;
import gg.essential.api.utils.Multithreading;
import gg.essential.elementa.WindowScreen;
import kotlin.Unit;
import com.nxtdelivery.tabulous.Tabulous;

import java.io.File;

Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/nxtdelivery/tabulous/util/Updater.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package com.nxtdelivery.tabulous.util;

import com.google.gson.JsonObject;
import com.nxtdelivery.tabulous.Tabulous;
import com.nxtdelivery.tabulous.config.TabulousConfig;
import gg.essential.api.EssentialAPI;
import gg.essential.api.utils.Multithreading;
import gg.essential.api.utils.WebUtil;
Expand All @@ -9,8 +11,6 @@
import net.minecraft.client.Minecraft;
import net.minecraftforge.fml.common.versioning.DefaultArtifactVersion;
import org.apache.commons.lang3.StringUtils;
import com.nxtdelivery.tabulous.Tabulous;
import com.nxtdelivery.tabulous.config.TabulousConfig;

import java.io.File;
import java.io.IOException;
Expand Down

0 comments on commit 60aef2e

Please sign in to comment.