mirror of
https://github.com/filoghost/ChestCommands.git
synced 2025-02-18 12:31:56 +01:00
Better exception handling
This commit is contained in:
parent
67103162a9
commit
49de578382
@ -7,6 +7,7 @@ import org.bukkit.inventory.ItemFlag;
|
|||||||
import org.bukkit.inventory.ItemStack;
|
import org.bukkit.inventory.ItemStack;
|
||||||
import org.bukkit.inventory.meta.ItemMeta;
|
import org.bukkit.inventory.meta.ItemMeta;
|
||||||
|
|
||||||
|
import com.gmail.filoghost.chestcommands.ChestCommands;
|
||||||
import com.gmail.filoghost.chestcommands.util.Utils;
|
import com.gmail.filoghost.chestcommands.util.Utils;
|
||||||
|
|
||||||
public class AttributeRemover {
|
public class AttributeRemover {
|
||||||
@ -52,9 +53,7 @@ public class AttributeRemover {
|
|||||||
useReflection = true;
|
useReflection = true;
|
||||||
|
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
ChestCommands.getInstance().getLogger().info("Could not enable the attribute remover for this version (" + e + "). Attributes will show up on items.");
|
||||||
e.printStackTrace();
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user