mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2025-02-08 00:11:30 +01:00
Test
This commit is contained in:
parent
f83498e5cb
commit
f6d0db7bdf
@ -44,10 +44,10 @@ public class CitizensEndermanNPC extends CitizensMobNPC implements Equipable {
|
||||
getBukkitEntity().setCarriedMaterial(hand.getData());
|
||||
}
|
||||
|
||||
ItemStack set = hand;
|
||||
ItemStack set = hand.clone();
|
||||
if (set.getType() != Material.AIR) {
|
||||
hand.setAmount(hand.getAmount() - 1);
|
||||
set.setAmount(1);
|
||||
hand.setAmount(hand.getAmount() - 1);
|
||||
}
|
||||
getTrait(Equipment.class).set(0, set);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user