summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDico200 <dico.karssiens@gmail.com>2018-07-25 02:12:17 +0100
committerDico200 <dico.karssiens@gmail.com>2018-07-25 02:12:17 +0100
commitc0e4ab728edcfc7415039ec5806c984521a65338 (patch)
tree26da99f0d17722baa7cdda0d7ee343f292586f59
parent44587e49ff1840219d9bc44844d4a3a6cd8ac5de (diff)
Remove any references to local files, fix build
-rw-r--r--build.gradle.kts13
-rw-r--r--dicore3/core/src/main/java/io/dico/dicore/InventoryEventUtil.java2
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: