Comments (2)
From c5c7f68d947f366fef739e0ac3a655baed507bfe Mon Sep 17 00:00:00 2001
From: Jadon Fowler <[email protected]>
Date: Thu, 19 May 2016 18:13:48 -0600
Subject: [PATCH] Optimize conversion to Mojang-style UUIDs by avoiding regex
diff --git a/api/src/main/java/net/md_5/bungee/api/ServerPing.java b/api/src/main/java/net/md_5/bungee/api/ServerPing.java
index 314a1d2..6804ad9 100644
--- a/api/src/main/java/net/md_5/bungee/api/ServerPing.java
+++ b/api/src/main/java/net/md_5/bungee/api/ServerPing.java
@@ -73,7 +73,7 @@ public class ServerPing
public String getId()
{
- return uniqueId.toString().replaceAll( "-", "" );
+ return uniqueId.toString().replace( "-", "" );
}
}
diff --git a/proxy/src/main/java/net/md_5/bungee/connection/InitialHandler.java b/proxy/src/main/java/net/md_5/bungee/connection/InitialHandler.java
index dab6ef2..ad19168 100644
--- a/proxy/src/main/java/net/md_5/bungee/connection/InitialHandler.java
+++ b/proxy/src/main/java/net/md_5/bungee/connection/InitialHandler.java
@@ -603,7 +603,7 @@ public class InitialHandler extends PacketHandler implements PendingConnection
@Override
public String getUUID()
{
- return uniqueId.toString().replaceAll( "-", "" );
+ return uniqueId.toString().replace( "-", "" );
}
@Override
--
2.8.3
from waterfall.
The methods are overridden in patch 11 already, so I don't see the point here.
from waterfall.
Related Issues (20)
- A task raised an exception. Task: net.md_5.bungee.connection.InitialHandler$6$1@5c56a117 HOT 3
- The server you were previously on went down, you have been connected to a fallback server HOT 1
- 1.20.2 resource pack deleted when players switch between servers HOT 5
- FR: ProxyReady Event? HOT 1
- [BUG] Fallback Server not working. HOT 13
- [BUG] Could not decode packet HOT 4
- Failed to set channel option 'CONNECT_TIMEOUT_MILLIS' with value '-1' HOT 5
- Error dispatching event ServerKickEvent HOT 2
- Possible Exploit HOT 2
- Entity Rewrite - Settings get reset HOT 5
- Request update to 1.20.4 HOT 1
- Unable to make field int java.awt.Color.value accessible HOT 1
- HAProxy 2.0+ Proxy Protocol Spam - InitialHandler - NativeIoException: recvAddress(..) failed: Connection reset by peer
- io.netty.handler.codec.DecoderException: Failed to decode: No key value in MapLike[{action:"suggest_command"}] HOT 2
- What wrong with this ? HOT 3
- [Bug] About Proxy-Protocol HOT 2
- player.sendMessage() throws exception after calling player.disconnect()
- Mark this project as Public Archive because of EoL HOT 1
- Javadocs broken - again HOT 3
- How to fork waterfall? HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from waterfall.