mirror of
				https://hub.spigotmc.org/stash/scm/spigot/craftbukkit.git
				synced 2025-11-01 09:09:36 +00:00 
			
		
		
		
	[Bleeding] Prevent players from appearing to be sneaking after they change dimensions whilst doing so.
This commit is contained in:
		
							parent
							
								
									b7886d1421
								
							
						
					
					
						commit
						42391009f7
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -387,7 +387,7 @@ public abstract class ServerConfigurationManagerAbstract {
 | 
				
			||||||
        entityplayer1.spawnIn(worldserver);
 | 
					        entityplayer1.spawnIn(worldserver);
 | 
				
			||||||
        entityplayer1.dead = false;
 | 
					        entityplayer1.dead = false;
 | 
				
			||||||
        entityplayer1.netServerHandler.teleport(new Location(worldserver.getWorld(), entityplayer1.locX, entityplayer1.locY, entityplayer1.locZ, entityplayer1.yaw, entityplayer1.pitch));
 | 
					        entityplayer1.netServerHandler.teleport(new Location(worldserver.getWorld(), entityplayer1.locX, entityplayer1.locY, entityplayer1.locZ, entityplayer1.yaw, entityplayer1.pitch));
 | 
				
			||||||
 | 
					        entityplayer1.setSneaking(false);
 | 
				
			||||||
        chunkcoordinates1 = worldserver.getSpawn();
 | 
					        chunkcoordinates1 = worldserver.getSpawn();
 | 
				
			||||||
        // CraftBukkit end
 | 
					        // CraftBukkit end
 | 
				
			||||||
        entityplayer1.netServerHandler.sendPacket(new Packet6SpawnPosition(chunkcoordinates1.x, chunkcoordinates1.y, chunkcoordinates1.z));
 | 
					        entityplayer1.netServerHandler.sendPacket(new Packet6SpawnPosition(chunkcoordinates1.x, chunkcoordinates1.y, chunkcoordinates1.z));
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue