Skip to content

Commit 79b63ab

Browse files
committed
make Text.of(...) param more accurate
1 parent d9d85bc commit 79b63ab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/zzzank/probejs/docs/ParamFix.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package zzzank.probejs.docs;
22

33
import dev.latvian.kubejs.bindings.TextWrapper;
4+
import dev.latvian.kubejs.text.Text;
45
import lombok.val;
5-
import net.minecraft.network.chat.MutableComponent;
66
import zzzank.probejs.lang.java.clazz.ClassPath;
77
import zzzank.probejs.lang.typescript.ScriptDump;
88
import zzzank.probejs.lang.typescript.TypeScriptFile;
@@ -23,7 +23,7 @@ public void modifyClasses(ScriptDump scriptDump, Map<ClassPath, TypeScriptFile>
2323
textWrapper,
2424
m -> m.params.size() == 1 && m.name.equals("of"),
2525
0,
26-
Types.type(MutableComponent.class)
26+
Types.type(Text.class)
2727
);
2828
}
2929
}

0 commit comments

Comments
 (0)