Skip to content

Commit

Permalink
Speed upgrade crafting: only fluid containers with a crafting-remaini…
Browse files Browse the repository at this point in the history
…ng item

#1376
  • Loading branch information
desht committed Nov 18, 2024
1 parent 7cbd90e commit 263351f
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ public static FluidContainerIngredient of(TagKey<Fluid> tag, int amount) {

@Override
public boolean test(ItemStack stack) {
if (!stack.hasCraftingRemainingItem()) return false;

IFluidHandlerItem handler = stack.getCapability(Capabilities.FluidHandler.ITEM);
if (handler == null) return false;
return either.map(
Expand Down

0 comments on commit 263351f

Please sign in to comment.