Fixed Dropitem
This commit is contained in:
parent
9760a1da4d
commit
b60d9cef0d
@ -97,8 +97,8 @@ public class BlacksmithTrait extends Trait {
|
|||||||
maxEnchantments = key.getInt("maximum-enchantments");
|
maxEnchantments = key.getInt("maximum-enchantments");
|
||||||
if (key.keyExists("extra-enchantments-chance"))
|
if (key.keyExists("extra-enchantments-chance"))
|
||||||
extraEnchantmentChance = key.getInt("extra-enchantment-chance");
|
extraEnchantmentChance = key.getInt("extra-enchantment-chance");
|
||||||
if (key.keyExists("drop-item"))
|
if (key.keyExists("dropitem"))
|
||||||
dropItem = key.getBoolean("drop-item");
|
dropItem = key.getBoolean("dropitem");
|
||||||
if (key.keyExists("disable-cooldown"))
|
if (key.keyExists("disable-cooldown"))
|
||||||
disablecooldown = key.getBoolean("disable-cooldown");
|
disablecooldown = key.getBoolean("disable-cooldown");
|
||||||
if (key.keyExists("disable-delay"))
|
if (key.keyExists("disable-delay"))
|
||||||
@ -226,7 +226,6 @@ public class BlacksmithTrait extends Trait {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
player.sendMessage("dropitem:" + dropItem);
|
|
||||||
player.sendMessage( reforgeItemInHand() ? successMsg : failMsg);
|
player.sendMessage( reforgeItemInHand() ? successMsg : failMsg);
|
||||||
if (npc.getEntity() instanceof Player)
|
if (npc.getEntity() instanceof Player)
|
||||||
((Player) npc.getEntity()).setItemInHand(null);
|
((Player) npc.getEntity()).setItemInHand(null);
|
||||||
|
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue
Block a user