mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2024-11-26 03:55:28 +01:00
remove commented code
This commit is contained in:
parent
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
|
||||||
|
Loading…
Reference in New Issue
Block a user