Skip to content

Commit 271be86

Browse files
finshopewang
andauthored
fix larger miner crash game (#3992)
Co-authored-by: wang <[email protected]>
1 parent 390a7d4 commit 271be86

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/com/gregtechceu/gtceu/common/machine/trait/miner/LargeMinerLogic.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
import org.jetbrains.annotations.NotNull;
3030

3131
import java.util.List;
32+
import java.util.Optional;
3233

3334
public class LargeMinerLogic extends MinerLogic {
3435

@@ -149,7 +150,7 @@ protected void dropPostProcessing(NonNullList<ItemStack> blockDrops, List<ItemSt
149150
fortunePick.enchant(fortuneHolder, getDropCountMultiplier());
150151
LootParams params = builder.withParameter(LootContextParams.TOOL, fortunePick)
151152
.create(LootContextParamSets.BLOCK);
152-
LootContext context = new LootContext.Builder(params).create(null);
153+
LootContext context = new LootContext.Builder(params).create(Optional.empty());
153154

154155
for (ItemStack outputStack : outputs) {
155156
if (ChemicalHelper.getPrefix(outputStack.getItem()) == TagPrefix.crushed) {

0 commit comments

Comments
 (0)