Skip to content

Commit

Permalink
thingies
Browse files Browse the repository at this point in the history
  • Loading branch information
viciscat committed Aug 7, 2024
1 parent b00b685 commit 709657e
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 7 deletions.
2 changes: 0 additions & 2 deletions src/main/java/de/hysky/skyblocker/SkyblockerMod.java
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,6 @@ public void onInitializeClient() {
Scheduler.INSTANCE.scheduleCyclic(Utils::update, 20);
Scheduler.INSTANCE.scheduleCyclic(DiscordRPCManager::updateDataAndPresence, 200);
Scheduler.INSTANCE.scheduleCyclic(BackpackPreview::tick, 50);
//Scheduler.INSTANCE.scheduleCyclic(DwarvenHud::update, 40);
//Scheduler.INSTANCE.scheduleCyclic(CrystalsHudWidget::update, 40);
Scheduler.INSTANCE.scheduleCyclic(PlayerListMgr::updateList, 20);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ public static ConfigCategory create(SkyblockerConfig defaults, SkyblockerConfig
.build())
.option(Option.<Boolean>createBuilder()
.name(Text.literal("Effects from footer"))
.description(OptionDescription.of(Text.literal("If on, will fetch current effects from the tab footer if the hypixel Effects widget is disabled")))
.description(OptionDescription.of(Text.literal("If on, will fetch current effects from the tab footer if the Hypixel Effects Widget is disabled")))
.controller(ConfigUtils::createBooleanController)
.binding(defaults.uiAndVisuals.tabHud.effectsFromFooter,
() -> config.uiAndVisuals.tabHud.effectsFromFooter,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ public static void init() {
}

FarmingHudWidget.INSTANCE.update();
//FarmingHudWidget.INSTANCE.render(context, SkyblockerConfigManager.get().uiAndVisuals.tabHud.enableHudBackground);
}
});
ClientPlayerBlockBreakEvents.AFTER.register((world, player, pos, state) -> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,6 @@ public class FarmingHudWidget extends ComponentBasedWidget {

public FarmingHudWidget() {
super(TITLE, Formatting.YELLOW.getColorValue(), "hud_farming");
//setX(SkyblockerConfigManager.get().farming.garden.farmingHud.x);
//setY(SkyblockerConfigManager.get().farming.garden.farmingHud.y);
update();
}

Expand All @@ -67,7 +65,7 @@ public void updateContent() {
ItemStack farmingToolStack = client.player.getMainHandStack();
if (farmingToolStack == null) return;
String itemId = ItemUtils.getItemId(farmingToolStack);
String cropItemId = FARMING_TOOLS.containsKey(itemId) ? FARMING_TOOLS.get(itemId) : "";
String cropItemId = FARMING_TOOLS.getOrDefault(itemId, "");
ItemStack cropStack = ItemRepository.getItemStack(cropItemId.replace(":", "-")); // Hacky conversion to neu id since ItemUtils.getNeuId requires an item stack.

String counterText = FarmingHud.counterText();
Expand Down

0 comments on commit 709657e

Please sign in to comment.