From 6d719988bf3a535fd65de54d6453d589fd4ecaeb Mon Sep 17 00:00:00 2001 From: TfT_02 Date: Tue, 3 Jun 2014 12:23:42 +0200 Subject: [PATCH] Remove this check here, allows Salvage in Adv mode MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We’re already checking if the players game mode isn’t CREATIVE, so we can safely remove this check. Fixes #2059 --- .../com/gmail/nossr50/skills/salvage/SalvageManager.java | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/skills/salvage/SalvageManager.java b/src/main/java/com/gmail/nossr50/skills/salvage/SalvageManager.java index 066acad88..130e4685d 100644 --- a/src/main/java/com/gmail/nossr50/skills/salvage/SalvageManager.java +++ b/src/main/java/com/gmail/nossr50/skills/salvage/SalvageManager.java @@ -3,7 +3,6 @@ package com.gmail.nossr50.skills.salvage; import java.util.Map; import java.util.Map.Entry; -import org.bukkit.GameMode; import org.bukkit.Location; import org.bukkit.Material; import org.bukkit.Sound; @@ -58,10 +57,6 @@ public class SalvageManager extends SkillManager { public void handleSalvage(Location location, ItemStack item) { Player player = getPlayer(); - if (player.getGameMode() != GameMode.SURVIVAL) { - return; - } - Salvageable salvageable = mcMMO.getSalvageableManager().getSalvageable(item.getType()); // Permissions checks on material and item types