Skip to content

Commit 6d2df5a

Browse files
committed
Update BlockDropItemEventListener.java
1 parent 06f4fde commit 6d2df5a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main/java/us/thezircon/play/autopickup/listeners/BlockDropItemEventListener.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@ public void onDrop(BlockDropItemEvent e) {
4747
if (PLUGIN.autopickup_list.contains(player)) { // Player has auto enabled
4848
for (Entity en : e.getItems()) {
4949

50+
if (en==null || en.isDead() || !en.isValid()) {
51+
continue; // TEST
52+
}
53+
5054
Item i = (Item) en;
5155
ItemStack drop = i.getItemStack();
5256

0 commit comments

Comments
 (0)