Skip to content

Commit

Permalink
Bug fix: setmaterial command read from config instead of argument.
Browse files Browse the repository at this point in the history
Yep.
  • Loading branch information
501st-alpha1 committed Nov 6, 2012
1 parent e3b28e2 commit f65c0ff
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Binary file modified com/scott_weldon/xp_to_emerald/XPtoEmerald.class
Binary file not shown.
3 changes: 1 addition & 2 deletions com/scott_weldon/xp_to_emerald/XPtoEmerald.java
Original file line number Diff line number Diff line change
Expand Up @@ -255,8 +255,7 @@ public boolean setScale(CommandSender sender, int scale) {
public boolean setMaterial(CommandSender sender, String material) {
if (sender.hasPermission("xptoemerald.admin")
|| sender instanceof ConsoleCommandSender) {
Material m = Material.getMaterial(config.getString("material")
.toUpperCase());
Material m = Material.getMaterial(material.toUpperCase());
if (m == null) {
sender.sendMessage("That isn't a valid material!");
return true;
Expand Down

0 comments on commit f65c0ff

Please sign in to comment.