Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-11-20 06:50:08 +01:00
remove commented code
Dieser Commit ist enthalten in:
Ursprung
44ca95bf85
Commit
7e8bd606fe
@ -88,15 +88,6 @@ public class BungeeServerHandler implements Listener {
|
|||||||
|
|
||||||
public void checkServerChange(ServerConnectedEvent e, UserConnection user) throws Exception {
|
public void checkServerChange(ServerConnectedEvent e, UserConnection user) throws Exception {
|
||||||
if (user == null) return;
|
if (user == null) return;
|
||||||
// Manually hide ViaVersion-created BossBars if the childserver was version 1.8.x (#666)
|
|
||||||
// Will be cleared by code below or by ServerConnector#handle(Login)
|
|
||||||
/*if (user.has(EntityTracker.class)) {
|
|
||||||
EntityTracker tracker = user.get(EntityTracker.class);
|
|
||||||
|
|
||||||
if (tracker.getBossBarMap() != null)
|
|
||||||
for (BossBar bar : tracker.getBossBarMap().values())
|
|
||||||
bar.hide();
|
|
||||||
}*/
|
|
||||||
// Handle server/version change
|
// Handle server/version change
|
||||||
if (user.has(BungeeStorage.class)) {
|
if (user.has(BungeeStorage.class)) {
|
||||||
BungeeStorage storage = user.get(BungeeStorage.class);
|
BungeeStorage storage = user.get(BungeeStorage.class);
|
||||||
|
@ -87,15 +87,6 @@ public class VelocityServerHandler {
|
|||||||
|
|
||||||
public void checkServerChange(ServerConnectedEvent e, UserConnection user) throws Exception {
|
public void checkServerChange(ServerConnectedEvent e, UserConnection user) throws Exception {
|
||||||
if (user == null) return;
|
if (user == null) return;
|
||||||
// Manually hide ViaVersion-created BossBars if the childserver was version 1.8.x (#666)
|
|
||||||
// Will be cleared by code below or by Velocity's handleBackendJoinGame
|
|
||||||
/*if (user.has(EntityTracker.class)) {
|
|
||||||
EntityTracker tracker = user.get(EntityTracker.class);
|
|
||||||
|
|
||||||
if (tracker.getBossBarMap() != null)
|
|
||||||
for (BossBar bar : tracker.getBossBarMap().values())
|
|
||||||
bar.hide();
|
|
||||||
}*/
|
|
||||||
// Handle server/version change
|
// Handle server/version change
|
||||||
if (user.has(VelocityStorage.class)) {
|
if (user.has(VelocityStorage.class)) {
|
||||||
// Wait all the scheduled packets be sent
|
// Wait all the scheduled packets be sent
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren