Compare commits
2 Commits
e6f0a8599e
...
5cc234147a
Author | SHA1 | Date |
---|---|---|
ceze88 | 5cc234147a | |
ceze88 | 3658946da0 |
2
pom.xml
2
pom.xml
|
@ -6,7 +6,7 @@
|
|||
|
||||
<groupId>com.craftaro</groupId>
|
||||
<artifactId>EpicEnchants</artifactId>
|
||||
<version>2.0.0-SNAPSHOT</version>
|
||||
<version>2.0.0-SNAPSHOT-b2</version>
|
||||
|
||||
<name>EpicEnchants</name>
|
||||
<description>Unlock the potential of your weapons, tools and armor by making your own custom enchants.</description>
|
||||
|
|
|
@ -11,6 +11,7 @@ import org.bukkit.configuration.ConfigurationSection;
|
|||
import org.bukkit.entity.LivingEntity;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.event.Event;
|
||||
import org.bukkit.inventory.EquipmentSlot;
|
||||
import org.bukkit.inventory.ItemStack;
|
||||
|
||||
import java.util.Arrays;
|
||||
|
@ -82,6 +83,9 @@ public class GeneralUtils {
|
|||
}
|
||||
|
||||
public static int getHeldItemSlot(Player player, Event event) {
|
||||
if (event == null) {
|
||||
return player.getInventory().getHeldItemSlot();
|
||||
}
|
||||
if (CompatibleHand.getHand(event) == CompatibleHand.OFF_HAND) {
|
||||
return 40;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue