URGENT FIX: bot using EXTREMELY HIGH MEMORY (icu self care blame)

This commit is contained in:
ChomeNS
2024-12-30 13:38:00 +07:00
parent 0bae8b268c
commit e4743fd503
2 changed files with 3 additions and 4 deletions

View File

@@ -46,6 +46,8 @@ public class SelfCarePlugin extends Bot.Listener {
bot.addListener(this);
bot.executor.scheduleAtFixedRate(() -> positionPacketsPerSecond = 0, 0, 1, TimeUnit.SECONDS);
bot.chat.addListener(new ChatPlugin.Listener() {
@Override
public boolean systemMessageReceived(Component component, String string, String ansi) {
@@ -196,11 +198,8 @@ public class SelfCarePlugin extends Bot.Listener {
);
}
// totallynotskidded™ from smp.,.,
public void positionChange () {
positionPacketsPerSecond++;
bot.executor.schedule(() -> positionPacketsPerSecond--, 1, TimeUnit.SECONDS);
}
@Override