Skip to content

Commit af731f9

Browse files
committed
Quick Fix to Announcement Feature
Let's pretend this atrocity never existed
1 parent 53db6db commit af731f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fCraft/System/Server.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -981,7 +981,7 @@ static void ShowRandomAnnouncement( SchedulerTask task ) {
981981
byte messageLine = 100;
982982
if (line.StartsWith("λ")) {
983983
try {
984-
messageLine = byte.Parse(line.Remove(0,1).Take(3).JoinToString());
984+
messageLine = byte.Parse(line.Substring(1, 3));
985985
} catch {}
986986
line = line.Remove(0, 4);
987987
}

0 commit comments

Comments
 (0)