Finishing the darn Phantom Hands ritual
This commit is contained in:
parent
f87da36775
commit
dc7d9ebc06
45 changed files with 662 additions and 270 deletions
|
@ -199,7 +199,7 @@ public class RitualEffectItemRouting extends RitualEffect
|
|||
outputFocus = (OutputRoutingFocus)keyStack.getItem();
|
||||
|
||||
parad.addRoutingFocusPosAndFacing(outputFocus.getPosAndFacing(keyStack));
|
||||
parad.addLogic(outputFocus.getLogic(keyStack.getItemDamage()));
|
||||
parad.addLogic(outputFocus.getLogic(keyStack));
|
||||
lastItemWasFocus = true;
|
||||
continue;
|
||||
}else
|
||||
|
@ -228,7 +228,14 @@ public class RitualEffectItemRouting extends RitualEffect
|
|||
|
||||
if(parad.doesItemMatch(keyStack, syphonedStack))
|
||||
{
|
||||
ItemStack newStack = SpellHelper.insertStackIntoInventory(syphonedStack, outputChestInventory, inputDirection);
|
||||
ItemStack newStack = null;
|
||||
if(parad.maximumAmount <= 0)
|
||||
{
|
||||
newStack = SpellHelper.insertStackIntoInventory(syphonedStack, outputChestInventory, inputDirection);
|
||||
}else
|
||||
{
|
||||
newStack = SpellHelper.insertStackIntoInventory(syphonedStack, outputChestInventory, inputDirection, parad.maximumAmount);
|
||||
}
|
||||
if(size == newStack.stackSize)
|
||||
{
|
||||
continue;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue