1
0
mirror of https://github.com/mcMMO-Dev/mcMMO.git synced 2025-04-01 09:16:24 +02:00

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 
This commit is contained in:
TfT_02 2014-06-03 12:23:42 +02:00
parent b1c1f0e21e
commit 6d719988bf

@ -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