Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,9 @@ private void refreshEmptyFlag() {
}

public void autoEquipAll(EntityPlayer player) {
// items handed to a dying player are lost: his drops are already collected and the inventory
// is discarded on respawn
if (!player.isEntityAlive()) return;
int equipped = 0;
int toInventory = 0;
int leftover = 0;
Expand Down Expand Up @@ -294,6 +297,7 @@ public void autoEquipAll(EntityPlayer player) {
}

protected void robGrave(EntityPlayer player, ItemStack held) {
if (!player.isEntityAlive()) return;
boolean dropped = false;
for (int i = 0; i < inventory.getSizeInventory(); i++) {
final ItemStack stack = inventory.getStackInSlot(i);
Expand Down
Loading