made the nature altar only hopper out full aura storage items

This commit is contained in:
Ellpeck 2018-11-02 20:56:46 +01:00
parent fcdb1e6c64
commit 4626d90c00

View file

@ -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;
}
};