Skip to content

Commit 433cb08

Browse files
committed
revert: Legendary Sea Creature detection
Related with hannibal002/SkyHanni#4761 fix: version text location on `/sba`
1 parent be4638a commit 433cb08

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

src/main/java/com/fix3dll/skyblockaddons/gui/screens/SkyblockAddonsScreen.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,10 @@ protected void drawDefaultTitleText(GuiGraphics graphics, Screen screen, int alp
113113
int color = ARGB.white(glowAlpha);
114114
graphics.blit(RenderPipelines.GUI_TEXTURED, LOGO_GLOW, (int) (window.getGuiScaledWidth() / 2F - width / 2F), 5, 0, 0, width, height, width, height, color);
115115

116-
drawScaledString(graphics, screen, FORMATTED_VERSION, 55, defaultBlue, 1.3F, 170 - MC.font.width(FORMATTED_VERSION), false);
116+
graphics.pose().pushMatrix();
117+
graphics.pose().scale(1.3F);
118+
drawScaledString(graphics, screen, FORMATTED_VERSION, 42, defaultBlue, 1.0F, 10, true);
119+
graphics.pose().popMatrix();
117120
}
118121

119122
/**

src/main/java/com/fix3dll/skyblockaddons/listeners/PlayerListener.java

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ private boolean onChatReceived(Component component, boolean actionBar) {
391391
main.getRenderListener().setTitleFeature(Feature.SUMMONING_EYE_ALERT);
392392

393393
// TODO: Seems like leg warning and num sc killed should be separate features
394-
} else if (isSeaCreatureMessage(strippedText)) {
394+
} else if (SeaCreatureManager.getInstance().getAllSeaCreatureSpawnMessages().contains(unformattedText)) {
395395
int spawned = unformattedText.contains("Magma Slug")
396396
|| unformattedText.contains("Bayou Sludge")
397397
|| unformattedText.contains("Liltads") ? 4 : 1;
@@ -1290,10 +1290,4 @@ private void flyingCheck() {
12901290

12911291
private record RatSound(ResourceLocation location, float volume, float pitch) {}
12921292

1293-
// SkyHanni sents modified chat message instead of original one.
1294-
private boolean isSeaCreatureMessage(String chatMessage) {
1295-
return !chatMessage.isBlank() && SeaCreatureManager.getInstance().getAllSeaCreatureSpawnMessages()
1296-
.stream().anyMatch(chatMessage::endsWith);
1297-
}
1298-
12991293
}

0 commit comments

Comments
 (0)