--- a/net/minecraft/server/commands/ReturnCommand.java
+++ b/net/minecraft/server/commands/ReturnCommand.java
@@ -18,7 +18,7 @@
 public class ReturnCommand {
     public static <T extends ExecutionCommandSource<T>> void register(CommandDispatcher<T> p_282091_) {
         p_282091_.register(
-            LiteralArgumentBuilder.<ExecutionCommandSource>literal("return")
+            LiteralArgumentBuilder.<T>literal("return")
                 .requires(p_305728_ -> p_305728_.hasPermission(2))
                 .then(
                     RequiredArgumentBuilder.<T, Integer>argument("value", IntegerArgumentType.integer())
