Fix for Aura of Expulsion
This commit is contained in:
parent
428a618eaf
commit
52acccaad6
4 changed files with 198 additions and 61 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue