diff options
-rw-r--r-- | build.gradle.kts | 13 | ||||
-rw-r--r-- | dicore3/core/src/main/java/io/dico/dicore/InventoryEventUtil.java | 2 |
2 files changed, 11 insertions, 4 deletions
diff --git a/build.gradle.kts b/build.gradle.kts index 110ec17..ba041c6 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -20,11 +20,14 @@ allprojects { } repositories { mavenCentral() - mavenLocal() - maven("https://dl.bintray.com/kotlin/exposed") + maven("https://hub.spigotmc.org/nexus/content/repositories/snapshots") + maven("https://hub.spigotmc.org/nexus/content/repositories/sonatype-nexus-snapshots") } dependencies { - compile(files("${rootProject.rootDir.parentFile}/res/spigot-1.13-pre7.jar")) + val spigotVersion = "1.13-R0.1-SNAPSHOT" + compile("org.bukkit:bukkit:$spigotVersion") + compile("org.spigotmc:spigot-api:$spigotVersion") + compile("net.sf.trove4j:trove4j:3.0.3") testCompile("junit:junit:4.12") } @@ -37,6 +40,10 @@ project(":dicore3:dicore3-command") { } } +repositories { + maven("https://dl.bintray.com/kotlin/exposed") +} + dependencies { compile(project(":dicore3:dicore3-core")) compile(project(":dicore3:dicore3-command")) diff --git a/dicore3/core/src/main/java/io/dico/dicore/InventoryEventUtil.java b/dicore3/core/src/main/java/io/dico/dicore/InventoryEventUtil.java index 84d3ce1..5c19848 100644 --- a/dicore3/core/src/main/java/io/dico/dicore/InventoryEventUtil.java +++ b/dicore3/core/src/main/java/io/dico/dicore/InventoryEventUtil.java @@ -17,7 +17,7 @@ public class InventoryEventUtil { } public static ItemStack getNewItem(InventoryClickEvent event) { - Inventory clicked = event.getClickedInventory(); + Inventory clicked = event.getInventory(); switch (event.getAction()) { case SWAP_WITH_CURSOR: case PLACE_ALL: |