mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 13:16:45 +01: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 #2059
This commit is contained in:
parent
b1c1f0e21e
commit
6d719988bf
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user