Make LineWrapper same spacing as rest of code

This commit is contained in:
UnknownShadow200 2020-06-02 22:03:18 +10:00
parent 5c18fe940d
commit 824fa0853e
4 changed files with 21 additions and 27 deletions

View File

@ -29,7 +29,6 @@ namespace MCGalaxy {
int limit = NetUtils.StringSize; string color = "";
while (message.Length > 0) {
//if (Regex.IsMatch(message, "&a")) break;
if (lines.Count > 0 ) {
if (message[0] == '&')
@ -42,7 +41,7 @@ namespace MCGalaxy {
message = message.Remove(message.IndexOf("&"), 2);
if (message.Length <= limit) { lines.Add(message); break; }
for ( int i = limit - 1; i > limit - 20; --i )
for (int i = limit - 1; i > limit - 20; i--)
if (message[i] == ' ') {
lines.Add(message.Substring(0, i));
goto Next;

View File

@ -16,7 +16,6 @@
permissions and limitations under the Licenses.
*/
using System;
using System.Text.RegularExpressions;
using MCGalaxy.SQL;
namespace MCGalaxy.Commands.Chatting {

View File

@ -28,7 +28,6 @@ using MCGalaxy.Network;
using MCGalaxy.SQL;
using MCGalaxy.Util;
using BlockID = System.UInt16;
using BlockRaw = System.Byte;
namespace MCGalaxy {
public partial class Player : IDisposable {

View File

@ -15,19 +15,16 @@ permissions and limitations under the Licenses.
using System;
using System.Collections.Generic;
using System.IO;
using System.Net;
using System.Net.Sockets;
using System.Threading;
using MCGalaxy.Blocks;
using MCGalaxy.DB;
using MCGalaxy.Drawing;
using MCGalaxy.Events.EconomyEvents;
using MCGalaxy.Events.PlayerEvents;
using MCGalaxy.Games;
using MCGalaxy.SQL;
using MCGalaxy.Network;
using MCGalaxy.Tasks;
using MCGalaxy.Maths;
using MCGalaxy.Network;
using MCGalaxy.SQL;
using BlockID = System.UInt16;
namespace MCGalaxy {