mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-20 02:59:42 +00:00
Forgotten if clause from yesterday
This commit is contained in:
1 parent
30be75dbae
commit
be50fdeda5
1 file changed
+1
-1
+1
-1
@@ -1125,7 +1125,7 @@ public class TokenHoverInfo {
|
||||
|
||||
// Return type
|
||||
TypeInfo returnType = methodInfo.getReturnType();
|
||||
if (ScriptDocument.INSTANCE.isJavaScript())
|
||||
if (ScriptDocument.INSTANCE.isJavaScript() && methodInfo.isDeclaration())
|
||||
addSegment("function ", TokenType.KEYWORD.getHexColor());
|
||||
else if (returnType != null) {
|
||||
addTypeSegments(returnType);
|
||||
|
||||
Reference in new issue
Block a user