diff --git a/pom.xml b/pom.xml index 0ab2d50..1dc775f 100644 --- a/pom.xml +++ b/pom.xml @@ -92,9 +92,9 @@ - org.bukkit - bukkit - 1.14.4-R0.1-SNAPSHOT + org.spigotmc + spigot-api + 1.19-R0.1-SNAPSHOT provided diff --git a/resources/plugin.yml b/resources/plugin.yml index 4244ed5..05a420f 100644 --- a/resources/plugin.yml +++ b/resources/plugin.yml @@ -2,7 +2,7 @@ name: AutomaticInventory main: me.ryanhamshire.AutomaticInventory.AutomaticInventory authors: [Big_Scary, RoboMWM, AllTheCode, Pugabyte] version: '${project.version}-${git.commit.id.abbrev}' -api-version: '1.14' +api-version: '1.19' commands: debugai: description: Debug command for AutomaticInventory. diff --git a/src/me/ryanhamshire/AutomaticInventory/AutomaticInventory.java b/src/me/ryanhamshire/AutomaticInventory/AutomaticInventory.java index 9ebe16d..491031f 100644 --- a/src/me/ryanhamshire/AutomaticInventory/AutomaticInventory.java +++ b/src/me/ryanhamshire/AutomaticInventory/AutomaticInventory.java @@ -240,7 +240,7 @@ else if(cmd.getName().equalsIgnoreCase("depositall") && player != null) } //create a thread to search those snapshots and create a chain of quick deposit attempts - int minY = Math.max(0, player.getEyeLocation().getBlockY() - 10); + int minY = Math.max(world.getMinHeight(), player.getEyeLocation().getBlockY() - 10); int maxY = Math.min(world.getMaxHeight(), player.getEyeLocation().getBlockY() + 10); int startY = player.getEyeLocation().getBlockY(); int startX = player.getEyeLocation().getBlockX();