From 4626d90c00f709d98d22195d4158c797e6086064 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Fri, 2 Nov 2018 20:56:46 +0100 Subject: [PATCH] made the nature altar only hopper out full aura storage items --- .../naturesaura/blocks/tiles/TileEntityNatureAltar.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/de/ellpeck/naturesaura/blocks/tiles/TileEntityNatureAltar.java b/src/main/java/de/ellpeck/naturesaura/blocks/tiles/TileEntityNatureAltar.java index 3626b307..204b7413 100644 --- a/src/main/java/de/ellpeck/naturesaura/blocks/tiles/TileEntityNatureAltar.java +++ b/src/main/java/de/ellpeck/naturesaura/blocks/tiles/TileEntityNatureAltar.java @@ -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; } };