Skip to content

Commit

Permalink
change /depositall minY to min height of world (issue MLG-Fortress#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
kikelkik committed Feb 5, 2023
1 parent 5e759dd commit feef40d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
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

0 comments on commit feef40d

Please sign in to comment.