mirror of
https://code.chipmunk.land/ChomeNS/chipmunkmod.git
synced 2025-11-13 18:46:15 +00:00
fix: spam on setblock place block core (memory leak, i called ListenerManager.addListener(this)` every time the player joins)
This commit is contained in:
parent
acfa11e74b
commit
514912ba2a
1 changed files with 1 additions and 2 deletions
|
|
@ -58,6 +58,7 @@ public class CommandCore implements Listener {
|
|||
public CommandCore (final MinecraftClient client) {
|
||||
this.client = client;
|
||||
reloadRelativeArea();
|
||||
ListenerManager.addListener(this);
|
||||
}
|
||||
|
||||
public void init () {
|
||||
|
|
@ -76,8 +77,6 @@ public class CommandCore implements Listener {
|
|||
if (client.player == null) return;
|
||||
|
||||
move(client.player.getPos());
|
||||
|
||||
ListenerManager.addListener(this);
|
||||
}
|
||||
|
||||
private void tick () {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue