fix weird NPE
This commit is contained in:
		
							parent
							
								
									a92de1817d
								
							
						
					
					
						commit
						580478173f
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		|  | @ -28,6 +28,7 @@ public class InteractionPacketListener implements PacketListener { | |||
|     public void onPacketReceive(PacketReceiveEvent event) { | ||||
|         if (event.getPacketType() != PacketType.Play.Client.INTERACT_ENTITY) return; | ||||
|         Player player = (Player) event.getPlayer(); | ||||
|         if (player == null) return; | ||||
| 
 | ||||
|         WrapperPlayClientInteractEntity packet = new WrapperPlayClientInteractEntity(event); | ||||
|         User user = userManager.get(player); | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue