Skip to content
This repository was archived by the owner on Sep 13, 2023. It is now read-only.

Commit 3e7ccc3

Browse files
committed
-
1 parent c0b923a commit 3e7ccc3

File tree

2 files changed

+24
-25
lines changed

2 files changed

+24
-25
lines changed

WpfMinecraftCommandHelper2/AllSelData.cs

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2170,28 +2170,28 @@ public string getLangFile()
21702170

21712171
private string[] uniColor = {
21722172
"",
2173-
"\u00A70",
2174-
"\u00A71",
2175-
"\u00A72",
2176-
"\u00A73",
2177-
"\u00A74",
2178-
"\u00A75",
2179-
"\u00A76",
2180-
"\u00A77",
2181-
"\u00A78",
2182-
"\u00A79",
2183-
"\u00A7a",
2184-
"\u00A7b",
2185-
"\u00A7c",
2186-
"\u00A7d",
2187-
"\u00A7e",
2188-
"\u00A7f",
2189-
"\u00A7k",
2190-
"\u00A7l",
2191-
"\u00A7m",
2192-
"\u00A7n",
2193-
"\u00A7o",
2194-
"\u00A7r",
2173+
"§0",
2174+
"§1",
2175+
"§2",
2176+
"§3",
2177+
"§4",
2178+
"§5",
2179+
"§6",
2180+
"§7",
2181+
"§8",
2182+
"§9",
2183+
"§a",
2184+
"§b",
2185+
"§c",
2186+
"§d",
2187+
"§e",
2188+
"§f",
2189+
"§k",
2190+
"§l",
2191+
"§m",
2192+
"§n",
2193+
"§o",
2194+
"§r",
21952195
""
21962196
};
21972197

WpfMinecraftCommandHelper2/Item.xaml.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -296,10 +296,9 @@ private void createBtn_Click(object sender, RoutedEventArgs e)
296296
finalStr = give + finalString + "}";
297297
}
298298
//判断是否含有颜色代码
299-
if (finalStr.IndexOf("\u00A7") != -1)
299+
if (finalStr.IndexOf("§") != -1)
300300
{
301-
finalStr.Replace("\"", "\\\\\\\"");
302-
finalStr.Replace("\u00A7", @"\\u00A7");
301+
finalStr = finalStr.Replace("§", @"\\u00A7");
303302
finalStr = "/setblock ~ ~1 ~ standing_sign 0 replace {Text1:\"{text:\\\"请点击我\\\",clickEvent:{action:\\\"run_command\\\",value:\\\"/blockdata ~ ~-1 ~ {Command:" + finalStr + ",}\\\"}}\"}";
304303
}
305304
globalCommand = finalStr;

0 commit comments

Comments
 (0)