mirror of
https://github.com/StarWishsama/Slimefun4.git
synced 2024-09-20 11:45:51 +00:00
Merge pull request #627 from meiamsome/hunter_talisman_fix
Prevent Talisman of the Hunter from duping armour/heads
This commit is contained in:
commit
313d71c2cd
@ -112,7 +112,7 @@ public class DamageListener implements Listener {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Talisman.checkFor(e, SlimefunItem.getByName("HUNTER_TALISMAN")) && !(e.getEntity() instanceof Player)) {
|
if (!e.getEntity().getCanPickupItems() && Talisman.checkFor(e, SlimefunItem.getByName("HUNTER_TALISMAN")) && !(e.getEntity() instanceof Player)) {
|
||||||
List<ItemStack> newDrops = new ArrayList<ItemStack>();
|
List<ItemStack> newDrops = new ArrayList<ItemStack>();
|
||||||
for (ItemStack drop : e.getDrops()) {
|
for (ItemStack drop : e.getDrops()) {
|
||||||
newDrops.add(drop);
|
newDrops.add(drop);
|
||||||
|
Loading…
Reference in New Issue
Block a user