Fix (again) Player#getPlayerProfile no such method error (#8722)
This commit is contained in:
		
					parent
					
						
							
								e794bcecbd
							
						
					
				
			
			
				commit
				
					
						d4d31bb847
					
				
			
		
					 2 changed files with 2 additions and 2 deletions
				
			
		|  | @ -175,7 +175,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 | ||||||
| +                        {
 | +                        {
 | ||||||
| +                            desc = getOriginalOrRewrite(desc);
 | +                            desc = getOriginalOrRewrite(desc);
 | ||||||
| +                        }
 | +                        }
 | ||||||
|                          if (owner.equals("org/bukkit/OfflinePlayer") && name.equals("getPlayerProfile") && desc.equals("()Lorg/bukkit/profile/PlayerProfile;")) { |                          if ((owner.equals("org/bukkit/OfflinePlayer") || owner.equals("org/bukkit/entity/Player")) && name.equals("getPlayerProfile") && desc.equals("()Lorg/bukkit/profile/PlayerProfile;")) { | ||||||
|                              super.visitMethodInsn(opcode, owner, name, "()Lcom/destroystokyo/paper/profile/PlayerProfile;", itf); |                              super.visitMethodInsn(opcode, owner, name, "()Lcom/destroystokyo/paper/profile/PlayerProfile;", itf); | ||||||
|                              return; |                              return; | ||||||
| @@ -0,0 +0,0 @@ public class Commodore
 | @@ -0,0 +0,0 @@ public class Commodore
 | ||||||
|  |  | ||||||
|  | @ -170,7 +170,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 | ||||||
|                          } |                          } | ||||||
|   |   | ||||||
| +                        // Paper start - Rewrite plugins
 | +                        // Paper start - Rewrite plugins
 | ||||||
| +                        if (owner.equals("org/bukkit/OfflinePlayer") && name.equals("getPlayerProfile") && desc.equals("()Lorg/bukkit/profile/PlayerProfile;")) {
 | +                        if ((owner.equals("org/bukkit/OfflinePlayer") || owner.equals("org/bukkit/entity/Player")) && name.equals("getPlayerProfile") && desc.equals("()Lorg/bukkit/profile/PlayerProfile;")) {
 | ||||||
| +                            super.visitMethodInsn(opcode, owner, name, "()Lcom/destroystokyo/paper/profile/PlayerProfile;", itf);
 | +                            super.visitMethodInsn(opcode, owner, name, "()Lcom/destroystokyo/paper/profile/PlayerProfile;", itf);
 | ||||||
| +                            return;
 | +                            return;
 | ||||||
| +                        }
 | +                        }
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Jake Potrebic
				Jake Potrebic