Skip to content

Commit

Permalink
Fix recycling crash with plasma + dust
Browse files Browse the repository at this point in the history
  • Loading branch information
serenibyss committed Dec 16, 2023
1 parent 118a731 commit 7d72f25
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/java/gregtech/loaders/recipe/RecyclingRecipes.java
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,10 @@ private static void registerExtractorRecycling(ItemStack input, List<MaterialSta
if (m.hasProperty(PropertyKey.INGOT) && m.getProperty(PropertyKey.INGOT).getMacerateInto() != m) {
m = m.getProperty(PropertyKey.INGOT).getMacerateInto();
}
if (!m.hasProperty(PropertyKey.FLUID) || (prefix == OrePrefix.dust && m.hasProperty(PropertyKey.BLAST))) {
if (!m.hasProperty(PropertyKey.FLUID) || m.getFluid() == null) {
return;
}
if (prefix == OrePrefix.dust && m.hasProperty(PropertyKey.BLAST)) {
return;
}
RecipeMaps.EXTRACTOR_RECIPES.recipeBuilder()
Expand Down

0 comments on commit 7d72f25

Please sign in to comment.