mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-12-28 07:20:28 +01:00
Add BungeeCommandExecutor random changes and remove completed TODO
This commit is contained in:
parent
6b012778d8
commit
363171b80c
2 changed files with 0 additions and 6 deletions
|
@ -35,20 +35,16 @@ import org.geysermc.connector.command.GeyserCommand;
|
||||||
import org.geysermc.connector.network.session.GeyserSession;
|
import org.geysermc.connector.network.session.GeyserSession;
|
||||||
import org.geysermc.connector.utils.LanguageUtils;
|
import org.geysermc.connector.utils.LanguageUtils;
|
||||||
|
|
||||||
import javax.annotation.Nullable;
|
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
import java.util.Collections;
|
import java.util.Collections;
|
||||||
|
|
||||||
public class GeyserBungeeCommandExecutor extends Command implements TabExecutor {
|
public class GeyserBungeeCommandExecutor extends Command implements TabExecutor {
|
||||||
|
|
||||||
private final CommandExecutor commandExecutor;
|
private final CommandExecutor commandExecutor;
|
||||||
private final GeyserConnector connector;
|
|
||||||
|
|
||||||
public GeyserBungeeCommandExecutor(GeyserConnector connector) {
|
public GeyserBungeeCommandExecutor(GeyserConnector connector) {
|
||||||
super("geyser");
|
super("geyser");
|
||||||
|
|
||||||
this.commandExecutor = new CommandExecutor(connector);
|
this.commandExecutor = new CommandExecutor(connector);
|
||||||
this.connector = connector;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -82,8 +82,6 @@ public class JavaLevelChunkWithLightTranslator extends PacketTranslator<Clientbo
|
||||||
ChunkUtils.updateChunkPosition(session, session.getPlayerEntity().getPosition().toInt());
|
ChunkUtils.updateChunkPosition(session, session.getPlayerEntity().getPosition().toInt());
|
||||||
}
|
}
|
||||||
|
|
||||||
//todo session.getChunkCache().addToCache(packet.getColumn());
|
|
||||||
|
|
||||||
// Ensure that, if the player is using lower world heights, the position is not offset
|
// Ensure that, if the player is using lower world heights, the position is not offset
|
||||||
int yOffset = session.getChunkCache().getChunkMinY();
|
int yOffset = session.getChunkCache().getChunkMinY();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue