Add Sticky Card (#371)

Co-authored-by: NotMyWing <winwyv@gmail.com>
This commit is contained in:
Serenibyss
2024-01-15 19:27:13 -06:00
committed by GitHub
parent dd3cdfcec5
commit a8f0bbe06b
23 changed files with 187 additions and 11 deletions
@@ -40,7 +40,6 @@ public class DriveWatcher<T extends IAEStack<T>> extends MEInventoryHandler<T> {
private final ICellHandler handler;
private final TileDrive drive;
private final IActionSource source;
public DriveWatcher(final ICellInventoryHandler<T> i, final ItemStack is, final ICellHandler han, final TileDrive drive) {
super(i, i.getChannel());
this.is = is;
@@ -100,4 +99,13 @@ public class DriveWatcher<T extends IAEStack<T>> extends MEInventoryHandler<T> {
return extractable;
}
@Override
public boolean isSticky() {
if (this.getInternal() instanceof ICellInventoryHandler<?> cellInventoryHandler) {
return cellInventoryHandler.isSticky();
}
return super.isSticky();
}
}