Remove this check here, allows Salvage in Adv mode

We’re already checking if the players game mode isn’t CREATIVE, so we
can safely remove this check.

Fixes #2059
This commit is contained in:
TfT_02 2014-06-03 12:23:42 +02:00
parent b1c1f0e21e
commit 6d719988bf

View File

@ -3,7 +3,6 @@ package com.gmail.nossr50.skills.salvage;
import java.util.Map; import java.util.Map;
import java.util.Map.Entry; import java.util.Map.Entry;
import org.bukkit.GameMode;
import org.bukkit.Location; import org.bukkit.Location;
import org.bukkit.Material; import org.bukkit.Material;
import org.bukkit.Sound; import org.bukkit.Sound;
@ -58,10 +57,6 @@ public class SalvageManager extends SkillManager {
public void handleSalvage(Location location, ItemStack item) { public void handleSalvage(Location location, ItemStack item) {
Player player = getPlayer(); Player player = getPlayer();
if (player.getGameMode() != GameMode.SURVIVAL) {
return;
}
Salvageable salvageable = mcMMO.getSalvageableManager().getSalvageable(item.getType()); Salvageable salvageable = mcMMO.getSalvageableManager().getSalvageable(item.getType());
// Permissions checks on material and item types // Permissions checks on material and item types