From fee216f62168936e0ca3eb52095e8825371b7a61 Mon Sep 17 00:00:00 2001 From: totemo Date: Fri, 27 Apr 2018 23:33:27 +0930 Subject: [PATCH] Version 2.3.1 - Potential fix for item elevator glitch on dropped items. --- pom.xml | 2 +- src/nu/nerd/beastmaster/Drop.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index df93ebf..1446a7a 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ nu.nerd BeastMaster ${project.name} - 2.3.0 + 2.3.1 jar Handles custom mob spawning. https://github.com/NerdNu/${project.name} diff --git a/src/nu/nerd/beastmaster/Drop.java b/src/nu/nerd/beastmaster/Drop.java index 49df1fe..b697235 100644 --- a/src/nu/nerd/beastmaster/Drop.java +++ b/src/nu/nerd/beastmaster/Drop.java @@ -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)");