3
0
Mirror von https://github.com/GeyserMC/Geyser.git synchronisiert 2024-07-06 13:28:06 +02:00

Fix wrong EntityType in JavaSpawnPlayerTranslator

Dieser Commit ist enthalten in:
RednedEpic 2019-08-04 15:53:39 -05:00
Ursprung 128769dee8
Commit 5be882b040

Datei anzeigen

@ -40,7 +40,7 @@ public class JavaSpawnPlayerTranslator extends PacketTranslator<ServerSpawnPlaye
Vector3f position = new Vector3f(packet.getX(), packet.getY(), packet.getZ());
Vector3f rotation = new Vector3f(packet.getPitch(), packet.getYaw(), 0);
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)
return;