mirror of
https://github.com/filoghost/HolographicDisplays.git
synced 2025-01-19 14:21:21 +01:00
Try to avoid error when player disconnects before packet listener is injected
This commit is contained in:
parent
cb12515755
commit
a8269e7867
@ -117,6 +117,9 @@ public class VersionNMSManager implements NMSManager {
|
||||
Channel channel = networkManager.channel;
|
||||
|
||||
channel.eventLoop().execute(() -> {
|
||||
if (!player.isOnline()) {
|
||||
return;
|
||||
}
|
||||
try {
|
||||
pipelineModifierTask.accept(channel.pipeline());
|
||||
} catch (Exception e) {
|
||||
|
@ -117,6 +117,9 @@ public class VersionNMSManager implements NMSManager {
|
||||
Channel channel = networkManager.channel;
|
||||
|
||||
channel.eventLoop().execute(() -> {
|
||||
if (!player.isOnline()) {
|
||||
return;
|
||||
}
|
||||
try {
|
||||
pipelineModifierTask.accept(channel.pipeline());
|
||||
} catch (Exception e) {
|
||||
|
@ -117,6 +117,9 @@ public class VersionNMSManager implements NMSManager {
|
||||
Channel channel = networkManager.channel;
|
||||
|
||||
channel.eventLoop().execute(() -> {
|
||||
if (!player.isOnline()) {
|
||||
return;
|
||||
}
|
||||
try {
|
||||
pipelineModifierTask.accept(channel.pipeline());
|
||||
} catch (Exception e) {
|
||||
|
@ -117,6 +117,9 @@ public class VersionNMSManager implements NMSManager {
|
||||
Channel channel = networkManager.channel;
|
||||
|
||||
channel.eventLoop().execute(() -> {
|
||||
if (!player.isOnline()) {
|
||||
return;
|
||||
}
|
||||
try {
|
||||
pipelineModifierTask.accept(channel.pipeline());
|
||||
} catch (Exception e) {
|
||||
|
@ -102,6 +102,9 @@ public class VersionNMSManager implements NMSManager {
|
||||
Channel channel = networkManager.channel;
|
||||
|
||||
channel.eventLoop().execute(() -> {
|
||||
if (!player.isOnline()) {
|
||||
return;
|
||||
}
|
||||
try {
|
||||
pipelineModifierTask.accept(channel.pipeline());
|
||||
} catch (Exception e) {
|
||||
|
@ -102,6 +102,9 @@ public class VersionNMSManager implements NMSManager {
|
||||
Channel channel = networkManager.channel;
|
||||
|
||||
channel.eventLoop().execute(() -> {
|
||||
if (!player.isOnline()) {
|
||||
return;
|
||||
}
|
||||
try {
|
||||
pipelineModifierTask.accept(channel.pipeline());
|
||||
} catch (Exception e) {
|
||||
|
@ -102,6 +102,9 @@ public class VersionNMSManager implements NMSManager {
|
||||
Channel channel = networkManager.channel;
|
||||
|
||||
channel.eventLoop().execute(() -> {
|
||||
if (!player.isOnline()) {
|
||||
return;
|
||||
}
|
||||
try {
|
||||
pipelineModifierTask.accept(channel.pipeline());
|
||||
} catch (Exception e) {
|
||||
|
@ -102,6 +102,9 @@ public class VersionNMSManager implements NMSManager {
|
||||
Channel channel = networkManager.channel;
|
||||
|
||||
channel.eventLoop().execute(() -> {
|
||||
if (!player.isOnline()) {
|
||||
return;
|
||||
}
|
||||
try {
|
||||
pipelineModifierTask.accept(channel.pipeline());
|
||||
} catch (Exception e) {
|
||||
|
@ -102,6 +102,9 @@ public class VersionNMSManager implements NMSManager {
|
||||
Channel channel = networkManager.channel;
|
||||
|
||||
channel.eventLoop().execute(() -> {
|
||||
if (!player.isOnline()) {
|
||||
return;
|
||||
}
|
||||
try {
|
||||
pipelineModifierTask.accept(channel.pipeline());
|
||||
} catch (Exception e) {
|
||||
|
@ -101,6 +101,9 @@ public class VersionNMSManager implements NMSManager {
|
||||
Channel channel = networkManager.k;
|
||||
|
||||
channel.eventLoop().execute(() -> {
|
||||
if (!player.isOnline()) {
|
||||
return;
|
||||
}
|
||||
try {
|
||||
pipelineModifierTask.accept(channel.pipeline());
|
||||
} catch (Exception e) {
|
||||
|
@ -101,6 +101,9 @@ public class VersionNMSManager implements NMSManager {
|
||||
Channel channel = networkManager.k;
|
||||
|
||||
channel.eventLoop().execute(() -> {
|
||||
if (!player.isOnline()) {
|
||||
return;
|
||||
}
|
||||
try {
|
||||
pipelineModifierTask.accept(channel.pipeline());
|
||||
} catch (Exception e) {
|
||||
|
@ -114,6 +114,9 @@ public class VersionNMSManager implements NMSManager {
|
||||
Channel channel = networkManager.channel;
|
||||
|
||||
channel.eventLoop().execute(() -> {
|
||||
if (!player.isOnline()) {
|
||||
return;
|
||||
}
|
||||
try {
|
||||
pipelineModifierTask.accept(channel.pipeline());
|
||||
} catch (Exception e) {
|
||||
|
@ -117,6 +117,9 @@ public class VersionNMSManager implements NMSManager {
|
||||
Channel channel = networkManager.channel;
|
||||
|
||||
channel.eventLoop().execute(() -> {
|
||||
if (!player.isOnline()) {
|
||||
return;
|
||||
}
|
||||
try {
|
||||
pipelineModifierTask.accept(channel.pipeline());
|
||||
} catch (Exception e) {
|
||||
|
Loading…
Reference in New Issue
Block a user