Skip to content

Commit

Permalink
fix: explicitly mark AccessorCommandHandler methods as Mutable
Browse files Browse the repository at this point in the history
  • Loading branch information
My-Name-Is-Jeff committed May 17, 2024
1 parent 720cbea commit 1e0a37c
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import net.minecraft.command.CommandHandler;
import net.minecraft.command.ICommand;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.Mutable;
import org.spongepowered.asm.mixin.gen.Accessor;

import java.util.Map;
Expand All @@ -31,12 +32,14 @@ public interface AccessorCommandHandler {
@Accessor
Set<ICommand> getCommandSet();

@Mutable
@Accessor
void setCommandSet(Set<ICommand> set);

@Accessor
Map<String, ICommand> getCommandMap();

@Mutable
@Accessor
void setCommandMap(Map<String, ICommand> map);

Expand Down

0 comments on commit 1e0a37c

Please sign in to comment.