Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change /depositall minY to min height of world (issue #50) #51

Merged
merged 1 commit into from
Mar 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,9 @@
<dependencies>
<!--Bukkit API-->
<dependency>
<groupId>org.bukkit</groupId>
<artifactId>bukkit</artifactId>
<version>1.14.4-R0.1-SNAPSHOT</version>
<groupId>org.spigotmc</groupId>
<artifactId>spigot-api</artifactId>
<version>1.19-R0.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<dependency>
Expand Down
2 changes: 1 addition & 1 deletion resources/plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down