mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-22 15:18:34 +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
|
@Override
|
||||||
public IAcceptor getAcceptor() {
|
public IAcceptor getAcceptor() {
|
||||||
return ItemStackHandlerAA.ACCEPT_FALSE;
|
return (slot, stack, automation) -> !automation;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -196,7 +196,7 @@ public class TileEntityPhantomPlacer extends TileEntityInventoryBase implements
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public IRemover getRemover() {
|
public IRemover getRemover() {
|
||||||
return ItemStackHandlerAA.REMOVE_FALSE;
|
return (slot, automation) -> !automation;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -73,13 +73,7 @@ public class ItemStackHandlerAA extends ItemStackHandler {
|
||||||
}
|
}
|
||||||
|
|
||||||
public final boolean canAccept(int slot, ItemStack stack, boolean automation) {
|
public final boolean canAccept(int slot, ItemStack stack, boolean automation) {
|
||||||
IAcceptor acceptor = getAcceptor();
|
return getAcceptor().canAccept(slot, stack, automation);
|
||||||
try {
|
|
||||||
return acceptor.canAccept(slot, stack, automation);
|
|
||||||
} catch (NullPointerException e) {
|
|
||||||
e.printStackTrace();
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public final boolean canRemove(int slot, boolean automation) {
|
public final boolean canRemove(int slot, boolean automation) {
|
||||||
|
|
Loading…
Reference in a new issue