mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-22 07:13:28 +01:00
Closes #1198
This commit is contained in:
parent
1d56bfb869
commit
2786022b26
3 changed files with 4 additions and 10 deletions
|
@ -23,7 +23,7 @@ public class TileEntityPhantomBreaker extends TileEntityPhantomPlacer {
|
|||
|
||||
@Override
|
||||
public IAcceptor getAcceptor() {
|
||||
return ItemStackHandlerAA.ACCEPT_FALSE;
|
||||
return (slot, stack, automation) -> !automation;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -31,4 +31,4 @@ public class TileEntityPhantomBreaker extends TileEntityPhantomPlacer {
|
|||
return ItemStackHandlerAA.REMOVE_TRUE;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
|
@ -196,7 +196,7 @@ public class TileEntityPhantomPlacer extends TileEntityInventoryBase implements
|
|||
|
||||
@Override
|
||||
public IRemover getRemover() {
|
||||
return ItemStackHandlerAA.REMOVE_FALSE;
|
||||
return (slot, automation) -> !automation;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -73,13 +73,7 @@ public class ItemStackHandlerAA extends ItemStackHandler {
|
|||
}
|
||||
|
||||
public final boolean canAccept(int slot, ItemStack stack, boolean automation) {
|
||||
IAcceptor acceptor = getAcceptor();
|
||||
try {
|
||||
return acceptor.canAccept(slot, stack, automation);
|
||||
} catch (NullPointerException e) {
|
||||
e.printStackTrace();
|
||||
return false;
|
||||
}
|
||||
return getAcceptor().canAccept(slot, stack, automation);
|
||||
}
|
||||
|
||||
public final boolean canRemove(int slot, boolean automation) {
|
||||
|
|
Loading…
Reference in a new issue