Mirror von
https://github.com/GeyserMC/Geyser.git
synchronisiert 2024-12-24 23:30:22 +01:00
Remove some debug
Dieser Commit ist enthalten in:
Ursprung
4bbb057f62
Commit
116dea9cb6
@ -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);
|
||||
}
|
||||
}
|
||||
|
@ -246,7 +246,7 @@ public class BedrockInventoryTransactionTranslator extends PacketTranslator<Inve
|
||||
case 0: //Interact
|
||||
if (session.getGameMode() == GameMode.SPECTATOR) {
|
||||
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;
|
||||
}
|
||||
session.sendDownstreamPacket(new ClientSpectatePacket(entity.getJavaUuid()));
|
||||
|
@ -77,10 +77,6 @@ public class BedrockInteractTranslator extends PacketTranslator<InteractPacket>
|
||||
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
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren