删除双S符号

Minecraft 服务器输出时正则删除双S符号
This commit is contained in:
huangsijun17 2019-03-01 21:10:57 +08:00 committed by GitHub
parent d12e11bbab
commit 919e04224b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -142,6 +142,7 @@
flag = (MinecraftConsole.scrollTop + 354 >= BUFF_FONTIER_SIZE_DOWN);
//color
consoleSafe = TOOLS.encodeConsoleColor(consoleSafe);
consoleSafe = TOOLS.deletDoubleS(consoleSafe);
//add
MinecraftConsole.innerHTML += consoleSafe;
//unblive bt ths is t
@ -160,6 +161,7 @@
var oldHeightV = MinecraftConsole.scrollHeight;
//颜色过滤
consoleSafe = TOOLS.encodeConsoleColor(consoleSafe);
consoleSafe = TOOLS.deletDoubleS(consoleSafe);
//incude
MinecraftConsole.innerHTML = consoleSafe + MinecraftConsole.innerHTML;
var newHeightV = MinecraftConsole.scrollHeight;
@ -182,4 +184,4 @@
MI.routeCopy('ServerSchedule', data.obj);
});
})();
})();