Skip to content

Commit

Permalink
Fixed Dropitem
Browse files Browse the repository at this point in the history
  • Loading branch information
HurricanKai committed Jul 31, 2017
1 parent 9760a1d commit b60d9ce
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/main/java/net/apunch/blacksmith/BlacksmithTrait.java
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ public void load(DataKey key) {
maxEnchantments = key.getInt("maximum-enchantments");
if (key.keyExists("extra-enchantments-chance"))
extraEnchantmentChance = key.getInt("extra-enchantment-chance");
if (key.keyExists("drop-item"))
dropItem = key.getBoolean("drop-item");
if (key.keyExists("dropitem"))
dropItem = key.getBoolean("dropitem");
if (key.keyExists("disable-cooldown"))
disablecooldown = key.getBoolean("disable-cooldown");
if (key.keyExists("disable-delay"))
Expand Down Expand Up @@ -226,7 +226,6 @@ private ReforgeSession(Player player, NPC npc) {

@Override
public void run() {
player.sendMessage("dropitem:" + dropItem);
player.sendMessage( reforgeItemInHand() ? successMsg : failMsg);
if (npc.getEntity() instanceof Player)
((Player) npc.getEntity()).setItemInHand(null);
Expand Down
Binary file not shown.
Binary file modified target/classes/net/apunch/blacksmith/BlacksmithTrait.class
Binary file not shown.

0 comments on commit b60d9ce

Please sign in to comment.