Fixed enchanting table bug

This commit is contained in:
Auxilor
2021-06-16 13:35:38 +01:00
parent 80479b5c68
commit 67cf787552

View File

@@ -229,6 +229,10 @@ public class EnchantingListeners extends PluginDependent implements Listener {
*/
@EventHandler
public void secondaryEnchant(@NotNull final PrepareItemEnchantEvent event) {
if (!this.getPlugin().getConfigYml().getBool("enchanting-table.enabled")) {
return;
}
int maxLevel = this.getPlugin().getConfigYml().getInt("enchanting-table.maximum-obtainable-level");
try {