mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-20 03:59:45 +00:00
Fix #888 Squeezer should not work with reusable fluid containers
This commit is contained in:
1 parent
15fe11094b
commit
59d1d3456b
1 file changed
+2
-7
@@ -404,19 +404,14 @@ public class TileSqueezer extends TilePowered implements ISocketable, ISidedInve
|
||||
containerRecipes.put(emptyContainer, new SqueezerContainerRecipe(emptyContainer, timePerItem, remnants, chance));
|
||||
}
|
||||
|
||||
@Nullable
|
||||
public static ISqueezerContainerRecipe findMatchingContainerRecipe(ItemStack filledContainer) {
|
||||
ItemStack emptyContainer = FluidHelper.getEmptyContainer(filledContainer);
|
||||
if (emptyContainer == null) {
|
||||
return null;
|
||||
}
|
||||
|
||||
ISqueezerContainerRecipe containerRecipe = containerRecipes.get(emptyContainer);
|
||||
if (containerRecipe != null) {
|
||||
return containerRecipe;
|
||||
}
|
||||
|
||||
// default recipe for unregistered fluid items, has no remnants
|
||||
return new SqueezerContainerRecipe(emptyContainer, 10, null, 0);
|
||||
return containerRecipes.get(emptyContainer);
|
||||
}
|
||||
|
||||
public static ISqueezerRecipe findMatchingRecipe(ItemStack[] items) {
|
||||
|
||||
Reference in new issue
Block a user