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

Commit

Permalink
1.20.4
Browse files Browse the repository at this point in the history
  • Loading branch information
melontini committed Jul 11, 2024
1 parent 6dbc093 commit f8b0d32
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
import org.spongepowered.asm.mixin.injection.Inject;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;

import java.util.Optional;

@Mixin(ExecuteCommand.class)
public abstract class ExecuteCommandMixin {

Expand All @@ -39,7 +41,7 @@ public abstract class ExecuteCommandMixin {
LootContext context1 = new LootContext.Builder(new LootContextParameterSet.Builder(context.getSource().getWorld())
.add(LootContextParameters.ORIGIN, context.getSource().getPosition())
.addOptional(LootContextParameters.THIS_ENTITY, context.getSource().getEntity())
.build(LootContextTypes.COMMAND)).build(null);
.build(LootContextTypes.COMMAND)).build(Optional.empty());

return r.result().orElseThrow().apply(context1).getAsBoolean();
})));
Expand Down

0 comments on commit f8b0d32

Please sign in to comment.