From fc70bbec6fc75ce42374fe61a154c5baf56151eb Mon Sep 17 00:00:00 2001 From: ChomeNS <95471003+ChomeNS@users.noreply.github.com> Date: Mon, 7 Oct 2024 13:51:06 +0700 Subject: [PATCH] optimize --- .../java/me/chayapak1/chomens_bot/plugins/WorldPlugin.java | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/main/java/me/chayapak1/chomens_bot/plugins/WorldPlugin.java b/src/main/java/me/chayapak1/chomens_bot/plugins/WorldPlugin.java index 88076de..cbc3a24 100644 --- a/src/main/java/me/chayapak1/chomens_bot/plugins/WorldPlugin.java +++ b/src/main/java/me/chayapak1/chomens_bot/plugins/WorldPlugin.java @@ -1,6 +1,5 @@ package me.chayapak1.chomens_bot.plugins; -import net.kyori.adventure.key.Key; import org.cloudburstmc.nbt.NbtMap; import org.geysermc.mcprotocollib.network.Session; import org.geysermc.mcprotocollib.network.packet.Packet; @@ -11,12 +10,9 @@ import org.geysermc.mcprotocollib.protocol.packet.ingame.clientbound.Clientbound import me.chayapak1.chomens_bot.Bot; import java.util.ArrayList; -import java.util.LinkedHashMap; import java.util.List; public class WorldPlugin extends Bot.Listener { - private final Bot bot; - public int minY = 0; public int maxY = 256; @@ -25,8 +21,6 @@ public class WorldPlugin extends Bot.Listener { private final List listeners = new ArrayList<>(); public WorldPlugin (Bot bot) { - this.bot = bot; - bot.addListener(this); }