Skip to content

Commit

Permalink
Update EntityLib.java
Browse files Browse the repository at this point in the history
  • Loading branch information
Tofaa2 authored Feb 16, 2024
1 parent 62fc93c commit e7b9e9f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/java/me/tofaa/entitylib/EntityLib.java
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,10 @@ public static void sendPacket(UUID user, PacketWrapper<?> wrapper) {
checkInit();
Object channel = packetEvents.getProtocolManager().getChannel(user);
if (channel == null) {
System.out.println("EntityLib could not send packet to user " + user);
boolean b = Boolean.parseBoolean(System.getenv("entitylib_debug"));
if (b) {
System.out.println("EntityLib could not send packet to user " + user);
}
return;
}
packetEvents.getProtocolManager().sendPacket(channel, wrapper);
Expand Down

0 comments on commit e7b9e9f

Please sign in to comment.