mirror of
https://github.com/StarWishsama/Slimefun4.git
synced 2024-09-20 03:35:51 +00:00
Replaced deprecated method
This commit is contained in:
parent
2f7d4b619b
commit
eb7388c613
@ -112,7 +112,7 @@ public class DamageListener implements Listener {
|
||||
}
|
||||
}
|
||||
|
||||
if (!e.getEntity().getCanPickupItems() && Talisman.checkFor(e, SlimefunItem.getByName("HUNTER_TALISMAN")) && !(e.getEntity() instanceof Player)) {
|
||||
if (!e.getEntity().getCanPickupItems() && Talisman.checkFor(e, SlimefunItem.getByID("HUNTER_TALISMAN")) && !(e.getEntity() instanceof Player)) {
|
||||
List<ItemStack> newDrops = new ArrayList<ItemStack>();
|
||||
for (ItemStack drop : e.getDrops()) {
|
||||
newDrops.add(drop);
|
||||
|
Loading…
Reference in New Issue
Block a user