mirror of
https://github.com/Ellpeck/NaturesAura.git
synced 2024-11-22 11:53:29 +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
|
@Override
|
||||||
protected boolean canExtract(ItemStack stack, int slot, int amount) {
|
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