--- a/net/minecraft/commands/arguments/EntityArgument.java
+++ b/net/minecraft/commands/arguments/EntityArgument.java
@@ -116,9 +116,9 @@
 
     @Override
     public <S> CompletableFuture<Suggestions> listSuggestions(CommandContext<S> p_91482_, SuggestionsBuilder p_91483_) {
-        StringReader stringreader = p_91482_.getSource();
-        if (stringreader instanceof SharedSuggestionProvider sharedsuggestionprovider) {
-            stringreader = new StringReader(p_91483_.getInput());
+        S s = p_91482_.getSource();
+        if (s instanceof SharedSuggestionProvider sharedsuggestionprovider) {
+            StringReader stringreader = new StringReader(p_91483_.getInput());
             stringreader.setCursor(p_91483_.getStart());
             EntitySelectorParser entityselectorparser = new EntitySelectorParser(stringreader, sharedsuggestionprovider.hasPermission(2));
 
