Fixed Sigil of Magnetism and Call of the Zephyr picking up "dead" items.
This commit is contained in:
parent
3ac00ce4d6
commit
5e0a390f48
|
@ -8,7 +8,6 @@ import net.minecraft.entity.player.EntityPlayer;
|
|||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.util.math.AxisAlignedBB;
|
||||
import net.minecraft.world.World;
|
||||
import WayofTime.bloodmagic.api.Constants;
|
||||
|
||||
public class ItemSigilMagnetism extends ItemSigilToggleableBase
|
||||
{
|
||||
|
@ -30,7 +29,7 @@ public class ItemSigilMagnetism extends ItemSigilToggleableBase
|
|||
|
||||
for (EntityItem entity : entities)
|
||||
{
|
||||
if (entity != null && !world.isRemote)
|
||||
if (entity != null && !world.isRemote && !entity.isDead)
|
||||
{
|
||||
entity.onCollideWithPlayer(player);
|
||||
}
|
||||
|
|
|
@ -58,6 +58,11 @@ public class RitualZephyr extends Ritual
|
|||
{
|
||||
for (EntityItem entityItem : itemList)
|
||||
{
|
||||
if (entityItem.isDead)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
ItemStack copyStack = entityItem.getEntityItem().copy();
|
||||
int originalAmount = copyStack.stackSize;
|
||||
ItemStack newStack = Utils.insertStackIntoInventory(copyStack, (IInventory) tileInventory, EnumFacing.DOWN);
|
||||
|
|
Loading…
Reference in a new issue