Skip to content

Commit

Permalink
Reduce a compiler warning.
Browse files Browse the repository at this point in the history
Signed-off-by: 秋雨落 <i@rain.cx>
  • Loading branch information
qyl27 committed Nov 17, 2024
1 parent ab1e5d2 commit 58f4200
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,16 @@
import com.mojang.brigadier.exceptions.CommandSyntaxException;
import io.izzel.arclight.common.bridge.core.command.arguments.EntityArgumentBridge;
import io.izzel.arclight.common.bridge.core.command.arguments.EntitySelectorParserBridge;
import io.izzel.arclight.mixin.Decorate;
import net.minecraft.commands.arguments.EntityArgument;
import net.minecraft.commands.arguments.selector.EntitySelector;
import net.minecraft.commands.arguments.selector.EntitySelectorParser;
import org.spongepowered.asm.mixin.Final;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.Overwrite;
import org.spongepowered.asm.mixin.Shadow;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject;

import static net.minecraft.commands.arguments.EntityArgument.ERROR_NOT_SINGLE_ENTITY;
import static net.minecraft.commands.arguments.EntityArgument.ERROR_NOT_SINGLE_PLAYER;
Expand All @@ -28,7 +32,7 @@ public class EntityArgumentMixin implements EntityArgumentBridge {
return this.parse(reader, overridePermissions);
}

public EntitySelector parse(StringReader reader, boolean overridePermissions) throws CommandSyntaxException {
private EntitySelector parse(StringReader reader, boolean overridePermissions) throws CommandSyntaxException {
int i = 0;
EntitySelectorParser entityselectorparser = new EntitySelectorParser(reader, true);
EntitySelector entityselector = ((EntitySelectorParserBridge) entityselectorparser).bridge$parse(overridePermissions);
Expand Down

0 comments on commit 58f4200

Please sign in to comment.