mirror of
https://github.com/Ellpeck/NaturesAura.git
synced 2024-12-22 14:59:22 +01:00
made the nature altar only hopper out full aura storage items
This commit is contained in:
parent
fcdb1e6c64
commit
4626d90c00
1 changed files with 4 additions and 1 deletions
|
@ -40,7 +40,10 @@ public class TileEntityNatureAltar extends TileEntityImpl implements ITickable {
|
|||
|
||||
@Override
|
||||
protected boolean canExtract(ItemStack stack, int slot, int amount) {
|
||||
return AltarRecipe.forInput(stack) == null;
|
||||
if(stack.hasCapability(Capabilities.auraContainer, null))
|
||||
return stack.getCapability(Capabilities.auraContainer, null).storeAura(1, true) <= 0;
|
||||
else
|
||||
return AltarRecipe.forInput(stack) == null;
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue