Skip to content

Commit

Permalink
Update Player.java (#343)
Browse files Browse the repository at this point in the history
  • Loading branch information
PetteriM1 authored and SupremeMortal committed Aug 26, 2018
1 parent dbf26f3 commit 95bf571
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/cn/nukkit/Player.java
Expand Up @@ -4637,7 +4637,7 @@ public boolean pickupEntity(Entity entity, boolean near) {
this.dataPacket(pk);

this.inventory.addItem(item.clone());
entity.kill();
entity.close();
return true;
} else if (entity instanceof EntityItem) {
if (((EntityItem) entity).getPickupDelay() <= 0) {
Expand Down

0 comments on commit 95bf571

Please sign in to comment.