Fix for Aura of Expulsion

This commit is contained in:
WayofTime 2014-10-17 10:22:12 -04:00
parent 428a618eaf
commit 52acccaad6
4 changed files with 198 additions and 61 deletions

View file

@ -70,14 +70,20 @@ public class RitualEffectExpulsion extends RitualEffect
{
if (inventoryTile != null)
{
boolean test = false;
for (int i = 0; i < inventoryTile.getSizeInventory(); i++)
{
ItemStack stack = inventoryTile.getStackInSlot(i);
if (stack != null && stack.getItem() instanceof IBindable && EnergyItems.getOwnerName(stack).equals(playerString))
{
continue;
test = true;
}
}
if(test)
{
continue;
}
}
flag = teleportRandomly(entityplayer, teleportDistance) || flag;
}