Skip to content
This repository has been archived by the owner on Oct 4, 2024. It is now read-only.

Commit

Permalink
updated antimatter
Browse files Browse the repository at this point in the history
  • Loading branch information
Trinsdar committed Apr 12, 2024
1 parent e83a08c commit f56ab15
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public void onContainerClose(ContainerMachine<BlockEntityTrashCan> c, Player pla

public static class TrashCanCombinedHandler extends SidedCombinedInvWrapper {
public TrashCanCombinedHandler(Direction side, CoverHandler<?> coverHandler, ExtendedItemContainer... itemHandler) {
super(side, coverHandler, itemHandler);
super(side, coverHandler, d -> true, d-> true, itemHandler);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,7 @@ public MassStorageItemHandler(BlockEntityMassStorage tile) {
}*/

@Override
public Optional<ExtendedItemContainer> forSide(Direction side) {
return Optional.of(new SidedCombinedInvWrapper(side, tile.coverHandler.map(c -> c).orElse(null), this.inventories.values().stream().filter(t -> !(t instanceof FakeTrackedItemHandler)).toArray(ExtendedItemContainer[]::new)){
@Override
public @NotNull ItemStack insertItem(int slot, @NotNull ItemStack stack, boolean simulate) {
if (side == Direction.DOWN && tile.isOutput()){
return stack;
}
return super.insertItem(slot, stack, simulate);
}
});
public boolean allowsInput(Direction side) {
return super.allowsInput(side) && (side != Direction.DOWN || !tile.isOutput());
}
}
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ forge_version=40.2.4
fabric_api_version=0.57.0+1.18.2
fabric_loader_version=0.15.9

antimatter_version=0.2.1-pre29-1.18.2
antimatter_version=0.2.1-pre32-1.18.2
tesseract_version=0.2.3-pre4-1.18.2
jei_version=10.1.0.223
rei_version=8.3.557
Expand Down

0 comments on commit f56ab15

Please sign in to comment.