3
0
Mirror von https://github.com/GeyserMC/Geyser.git synchronisiert 2024-12-26 00:00:41 +01:00

Remove some debug

Dieser Commit ist enthalten in:
Luke 2020-09-26 02:45:31 +01:00
Ursprung 4bbb057f62
Commit 116dea9cb6
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 27CA82F5031EB5B0
3 geänderte Dateien mit 1 neuen und 17 gelöschten Zeilen

Datei anzeigen

@ -47,13 +47,11 @@ import com.nukkitx.protocol.bedrock.BedrockPacket;
import com.nukkitx.protocol.bedrock.BedrockServerSession; import com.nukkitx.protocol.bedrock.BedrockServerSession;
import com.nukkitx.protocol.bedrock.data.*; import com.nukkitx.protocol.bedrock.data.*;
import com.nukkitx.protocol.bedrock.data.command.CommandPermission; 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.data.entity.EntityLinkData;
import com.nukkitx.protocol.bedrock.packet.*; import com.nukkitx.protocol.bedrock.packet.*;
import it.unimi.dsi.fastutil.longs.Long2ObjectMap; import it.unimi.dsi.fastutil.longs.Long2ObjectMap;
import it.unimi.dsi.fastutil.longs.Long2ObjectMaps; import it.unimi.dsi.fastutil.longs.Long2ObjectMaps;
import it.unimi.dsi.fastutil.longs.Long2ObjectOpenHashMap; 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.Object2LongMap;
import it.unimi.dsi.fastutil.objects.Object2LongOpenHashMap; import it.unimi.dsi.fastutil.objects.Object2LongOpenHashMap;
import lombok.Getter; import lombok.Getter;
@ -65,7 +63,6 @@ import org.geysermc.connector.command.CommandSender;
import org.geysermc.connector.common.AuthType; import org.geysermc.connector.common.AuthType;
import org.geysermc.connector.entity.Entity; import org.geysermc.connector.entity.Entity;
import org.geysermc.connector.entity.PlayerEntity; import org.geysermc.connector.entity.PlayerEntity;
import org.geysermc.connector.entity.type.EntityType;
import org.geysermc.connector.inventory.PlayerInventory; import org.geysermc.connector.inventory.PlayerInventory;
import org.geysermc.connector.network.remote.RemoteServer; import org.geysermc.connector.network.remote.RemoteServer;
import org.geysermc.connector.network.session.auth.AuthData; import org.geysermc.connector.network.session.auth.AuthData;
@ -799,14 +796,5 @@ public class GeyserSession implements CommandSender {
Vector3f rot = spectatingEntity.getRotation(); Vector3f rot = spectatingEntity.getRotation();
playerEntity.updatePositionAndRotation(this, pos.getX(), pos.getY(), pos.getZ(), rot.getZ(), rot.getY(), spectatingEntity.isOnGround()); 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);
} }
} }

Datei anzeigen

@ -246,7 +246,7 @@ public class BedrockInventoryTransactionTranslator extends PacketTranslator<Inve
case 0: //Interact case 0: //Interact
if (session.getGameMode() == GameMode.SPECTATOR) { if (session.getGameMode() == GameMode.SPECTATOR) {
if (entity.getJavaUuid() == null) { if (entity.getJavaUuid() == null) {
GeyserConnector.getInstance().getLogger().warning("DEBUG: Tried to spectate entity with no Java UUID"); GeyserConnector.getInstance().getLogger().debug("Tried to spectate entity with no Java UUID");
return; return;
} }
session.sendDownstreamPacket(new ClientSpectatePacket(entity.getJavaUuid())); session.sendDownstreamPacket(new ClientSpectatePacket(entity.getJavaUuid()));

Datei anzeigen

@ -77,10 +77,6 @@ public class BedrockInteractTranslator extends PacketTranslator<InteractPacket>
ClientPlayerStatePacket sneakPacket = new ClientPlayerStatePacket((int) entity.getEntityId(), PlayerState.START_SNEAKING); ClientPlayerStatePacket sneakPacket = new ClientPlayerStatePacket((int) entity.getEntityId(), PlayerState.START_SNEAKING);
session.sendDownstreamPacket(sneakPacket); session.sendDownstreamPacket(sneakPacket);
session.setRidingVehicleEntity(null); session.setRidingVehicleEntity(null);
if (session.getGameMode() == GameMode.SPECTATOR && session.getSpectatingEntity() != null) {
//session.stopSpectatingEntity();
}
break; break;
case MOUSEOVER: case MOUSEOVER:
// Handle the buttons for mobile - "Mount", etc; and the suggestions for console - "ZL: Mount", etc // Handle the buttons for mobile - "Mount", etc; and the suggestions for console - "ZL: Mount", etc