Skip to content

Commit

Permalink
Fix to ItemDropListener
Browse files Browse the repository at this point in the history
  • Loading branch information
aufdemrand committed Apr 14, 2013
1 parent 7a0203a commit fd93d89
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Expand Up @@ -56,7 +56,7 @@ public void onBuild(List<String> args) {
for (String arg : args) {
if (aH.matchesValueArg("TYPE", arg, ArgumentType.Custom)) {
try {
type = ItemDropType.valueOf(aH.getStringFrom(arg));
type = ItemDropType.valueOf(aH.getStringFrom(arg).toUpperCase());
dB.echoDebug("...type set to: " + type.name());
continue;
} catch (Exception e) { dB.echoDebug("...type " + type.name() + " is not valid."); }
Expand Down
Expand Up @@ -4,7 +4,7 @@
import org.bukkit.craftbukkit.v1_5_R2.inventory.CraftItemStack;
import org.bukkit.inventory.ItemStack;

public class NBTItem {
public class NBTUtil {

public static MapOfEnchantments getEnchantments(ItemStack item) {
return new MapOfEnchantments(item);
Expand Down Expand Up @@ -59,6 +59,8 @@ public static ItemStack addCustomNBT(ItemStack item, String key, String value) {
return CraftItemStack.asCraftMirror(cis);
}



}


0 comments on commit fd93d89

Please sign in to comment.