mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-10-03 02:21:53 -04:00
Make LineWrapper same spacing as rest of code
This commit is contained in:
parent
5c18fe940d
commit
824fa0853e
@ -29,7 +29,6 @@ namespace MCGalaxy {
|
|||||||
|
|
||||||
int limit = NetUtils.StringSize; string color = "";
|
int limit = NetUtils.StringSize; string color = "";
|
||||||
while (message.Length > 0) {
|
while (message.Length > 0) {
|
||||||
//if (Regex.IsMatch(message, "&a")) break;
|
|
||||||
|
|
||||||
if (lines.Count > 0 ) {
|
if (lines.Count > 0 ) {
|
||||||
if (message[0] == '&')
|
if (message[0] == '&')
|
||||||
@ -42,7 +41,7 @@ namespace MCGalaxy {
|
|||||||
message = message.Remove(message.IndexOf("&"), 2);
|
message = message.Remove(message.IndexOf("&"), 2);
|
||||||
|
|
||||||
if (message.Length <= limit) { lines.Add(message); break; }
|
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] == ' ') {
|
if (message[i] == ' ') {
|
||||||
lines.Add(message.Substring(0, i));
|
lines.Add(message.Substring(0, i));
|
||||||
goto Next;
|
goto Next;
|
||||||
|
@ -16,7 +16,6 @@
|
|||||||
permissions and limitations under the Licenses.
|
permissions and limitations under the Licenses.
|
||||||
*/
|
*/
|
||||||
using System;
|
using System;
|
||||||
using System.Text.RegularExpressions;
|
|
||||||
using MCGalaxy.SQL;
|
using MCGalaxy.SQL;
|
||||||
|
|
||||||
namespace MCGalaxy.Commands.Chatting {
|
namespace MCGalaxy.Commands.Chatting {
|
||||||
|
@ -28,7 +28,6 @@ using MCGalaxy.Network;
|
|||||||
using MCGalaxy.SQL;
|
using MCGalaxy.SQL;
|
||||||
using MCGalaxy.Util;
|
using MCGalaxy.Util;
|
||||||
using BlockID = System.UInt16;
|
using BlockID = System.UInt16;
|
||||||
using BlockRaw = System.Byte;
|
|
||||||
|
|
||||||
namespace MCGalaxy {
|
namespace MCGalaxy {
|
||||||
public partial class Player : IDisposable {
|
public partial class Player : IDisposable {
|
||||||
|
@ -15,19 +15,16 @@ permissions and limitations under the Licenses.
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Net;
|
|
||||||
using System.Net.Sockets;
|
using System.Net.Sockets;
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
using MCGalaxy.Blocks;
|
|
||||||
using MCGalaxy.DB;
|
using MCGalaxy.DB;
|
||||||
using MCGalaxy.Drawing;
|
using MCGalaxy.Drawing;
|
||||||
using MCGalaxy.Events.EconomyEvents;
|
using MCGalaxy.Events.EconomyEvents;
|
||||||
using MCGalaxy.Events.PlayerEvents;
|
using MCGalaxy.Events.PlayerEvents;
|
||||||
using MCGalaxy.Games;
|
using MCGalaxy.Games;
|
||||||
using MCGalaxy.SQL;
|
|
||||||
using MCGalaxy.Network;
|
|
||||||
using MCGalaxy.Tasks;
|
|
||||||
using MCGalaxy.Maths;
|
using MCGalaxy.Maths;
|
||||||
|
using MCGalaxy.Network;
|
||||||
|
using MCGalaxy.SQL;
|
||||||
using BlockID = System.UInt16;
|
using BlockID = System.UInt16;
|
||||||
|
|
||||||
namespace MCGalaxy {
|
namespace MCGalaxy {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user