Mirror von
https://github.com/GeyserMC/Geyser.git
synchronisiert 2024-12-27 00:23:03 +01:00
Fix wrong EntityType in JavaSpawnPlayerTranslator
Dieser Commit ist enthalten in:
Ursprung
128769dee8
Commit
5be882b040
@ -40,7 +40,7 @@ public class JavaSpawnPlayerTranslator extends PacketTranslator<ServerSpawnPlaye
|
|||||||
Vector3f position = new Vector3f(packet.getX(), packet.getY(), packet.getZ());
|
Vector3f position = new Vector3f(packet.getX(), packet.getY(), packet.getZ());
|
||||||
Vector3f rotation = new Vector3f(packet.getPitch(), packet.getYaw(), 0);
|
Vector3f rotation = new Vector3f(packet.getPitch(), packet.getYaw(), 0);
|
||||||
Entity entity = new PlayerEntity(packet.getUUID(), packet.getEntityId(), session.getEntityCache().getNextEntityId().incrementAndGet(),
|
Entity entity = new PlayerEntity(packet.getUUID(), packet.getEntityId(), session.getEntityCache().getNextEntityId().incrementAndGet(),
|
||||||
EntityType.EXPERIENCE_ORB, position, new Vector3f(0, 0, 0), rotation);
|
EntityType.PLAYER, position, new Vector3f(0, 0, 0), rotation);
|
||||||
|
|
||||||
if (entity == null)
|
if (entity == null)
|
||||||
return;
|
return;
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren