3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-11-16 21:10:17 +01:00

[Bleeding] Prevent players from appearing to be sneaking after they change dimensions whilst doing so.

Dieser Commit ist enthalten in:
md_5 2012-10-30 18:08:48 +11:00 committet von EvilSeph
Ursprung b7886d1421
Commit 42391009f7

Datei anzeigen

@ -387,7 +387,7 @@ public abstract class ServerConfigurationManagerAbstract {
entityplayer1.spawnIn(worldserver);
entityplayer1.dead = false;
entityplayer1.netServerHandler.teleport(new Location(worldserver.getWorld(), entityplayer1.locX, entityplayer1.locY, entityplayer1.locZ, entityplayer1.yaw, entityplayer1.pitch));
entityplayer1.setSneaking(false);
chunkcoordinates1 = worldserver.getSpawn();
// CraftBukkit end
entityplayer1.netServerHandler.sendPacket(new Packet6SpawnPosition(chunkcoordinates1.x, chunkcoordinates1.y, chunkcoordinates1.z));