mirror of
				https://github.com/mcMMO-Dev/mcMMO.git
				synced 2025-10-31 09:13:43 +01:00 
			
		
		
		
	Fixed a small bug where players could salvage items in creative mode
This commit is contained in:
		
							
								
								
									
										2
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							| @@ -1,4 +1,4 @@ | |||||||
| # Eclipse stuffs | # Eclipse stuff | ||||||
| /.classpath | /.classpath | ||||||
| /.project | /.project | ||||||
| /.settings | /.settings | ||||||
|   | |||||||
| @@ -27,6 +27,7 @@ public class Salvage { | |||||||
|             return; |             return; | ||||||
|         } |         } | ||||||
|  |  | ||||||
|  |         if (player.getGameMode().equals(0)){ | ||||||
|         	final PlayerProfile profile = Users.getProfile(player); |         	final PlayerProfile profile = Users.getProfile(player); | ||||||
|         	final int skillLevel = profile.getSkillLevel(SkillType.REPAIR); |         	final int skillLevel = profile.getSkillLevel(SkillType.REPAIR); | ||||||
|         	final int unlockLevel = configInstance.getSalvageUnlockLevel(); |         	final int unlockLevel = configInstance.getSalvageUnlockLevel(); | ||||||
| @@ -50,6 +51,7 @@ public class Salvage { | |||||||
|         		player.sendMessage(LocaleLoader.getString("Repair.Skills.AdeptSalvage")); |         		player.sendMessage(LocaleLoader.getString("Repair.Skills.AdeptSalvage")); | ||||||
|         	} |         	} | ||||||
|         } |         } | ||||||
|  |     } | ||||||
|  |  | ||||||
|     /** |     /** | ||||||
|      * Handles notifications for placing an anvil. |      * Handles notifications for placing an anvil. | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 TfT_02
					TfT_02