Skip to content

Commit

Permalink
Version 2.3.1 - Potential fix for item elevator glitch on dropped items.
Browse files Browse the repository at this point in the history
  • Loading branch information
totemo committed Apr 27, 2018
1 parent ad2454b commit fee216f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<groupId>nu.nerd</groupId>
<name>BeastMaster</name>
<artifactId>${project.name}</artifactId>
<version>2.3.0</version>
<version>2.3.1</version>
<packaging>jar</packaging>
<description>Handles custom mob spawning.</description>
<url>https://github.com/NerdNu/${project.name}</url>
Expand Down
2 changes: 1 addition & 1 deletion src/nu/nerd/beastmaster/Drop.java
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ public boolean generate(String trigger, Player player, Location loc) {
Block locBlock = loc.getBlock();
Location revisedLoc = (locBlock != null && locBlock.getType() != Material.AIR &&
player != null) ? player.getLocation() : loc;
revisedLoc.getWorld().dropItemNaturally(revisedLoc, itemStack);
revisedLoc.getWorld().dropItem(revisedLoc, itemStack);
}, 1);
}
dropDescription = "ITEM " + getId() + (dropSucceeded ? " x " + itemStack.getAmount() : " (invalid)");
Expand Down

0 comments on commit fee216f

Please sign in to comment.