From 116dea9cb69168dd052624b77512b522e08ef9d4 Mon Sep 17 00:00:00 2001 From: Luke <32024335+lukeeey@users.noreply.github.com> Date: Sat, 26 Sep 2020 02:45:31 +0100 Subject: [PATCH] Remove some debug --- .../connector/network/session/GeyserSession.java | 12 ------------ .../BedrockInventoryTransactionTranslator.java | 2 +- .../entity/player/BedrockInteractTranslator.java | 4 ---- 3 files changed, 1 insertion(+), 17 deletions(-) diff --git a/connector/src/main/java/org/geysermc/connector/network/session/GeyserSession.java b/connector/src/main/java/org/geysermc/connector/network/session/GeyserSession.java index bb2037e40..1bf98bb3f 100644 --- a/connector/src/main/java/org/geysermc/connector/network/session/GeyserSession.java +++ b/connector/src/main/java/org/geysermc/connector/network/session/GeyserSession.java @@ -47,13 +47,11 @@ import com.nukkitx.protocol.bedrock.BedrockPacket; import com.nukkitx.protocol.bedrock.BedrockServerSession; import com.nukkitx.protocol.bedrock.data.*; import com.nukkitx.protocol.bedrock.data.command.CommandPermission; -import com.nukkitx.protocol.bedrock.data.entity.EntityData; import com.nukkitx.protocol.bedrock.data.entity.EntityLinkData; import com.nukkitx.protocol.bedrock.packet.*; import it.unimi.dsi.fastutil.longs.Long2ObjectMap; import it.unimi.dsi.fastutil.longs.Long2ObjectMaps; import it.unimi.dsi.fastutil.longs.Long2ObjectOpenHashMap; -import it.unimi.dsi.fastutil.longs.LongOpenHashSet; import it.unimi.dsi.fastutil.objects.Object2LongMap; import it.unimi.dsi.fastutil.objects.Object2LongOpenHashMap; import lombok.Getter; @@ -65,7 +63,6 @@ import org.geysermc.connector.command.CommandSender; import org.geysermc.connector.common.AuthType; import org.geysermc.connector.entity.Entity; import org.geysermc.connector.entity.PlayerEntity; -import org.geysermc.connector.entity.type.EntityType; import org.geysermc.connector.inventory.PlayerInventory; import org.geysermc.connector.network.remote.RemoteServer; import org.geysermc.connector.network.session.auth.AuthData; @@ -799,14 +796,5 @@ public class GeyserSession implements CommandSender { Vector3f rot = spectatingEntity.getRotation(); playerEntity.updatePositionAndRotation(this, pos.getX(), pos.getY(), pos.getZ(), rot.getZ(), rot.getY(), spectatingEntity.isOnGround()); - - SetTitlePacket setTitlePacket = new SetTitlePacket(); - setTitlePacket.setFadeOutTime(0); - setTitlePacket.setFadeInTime(0); - setTitlePacket.setStayTime(30); - setTitlePacket.setText("Sending position: " + pos.getX() + " " + pos.getY() + " " + pos.getZ()); - setTitlePacket.setType(SetTitlePacket.Type.ACTIONBAR); - - this.sendUpstreamPacket(setTitlePacket); } } diff --git a/connector/src/main/java/org/geysermc/connector/network/translators/bedrock/BedrockInventoryTransactionTranslator.java b/connector/src/main/java/org/geysermc/connector/network/translators/bedrock/BedrockInventoryTransactionTranslator.java index 6535226fd..61a64c8d6 100644 --- a/connector/src/main/java/org/geysermc/connector/network/translators/bedrock/BedrockInventoryTransactionTranslator.java +++ b/connector/src/main/java/org/geysermc/connector/network/translators/bedrock/BedrockInventoryTransactionTranslator.java @@ -246,7 +246,7 @@ public class BedrockInventoryTransactionTranslator extends PacketTranslator ClientPlayerStatePacket sneakPacket = new ClientPlayerStatePacket((int) entity.getEntityId(), PlayerState.START_SNEAKING); session.sendDownstreamPacket(sneakPacket); session.setRidingVehicleEntity(null); - - if (session.getGameMode() == GameMode.SPECTATOR && session.getSpectatingEntity() != null) { - //session.stopSpectatingEntity(); - } break; case MOUSEOVER: // Handle the buttons for mobile - "Mount", etc; and the suggestions for console - "ZL: Mount", etc