Skip to content

Commit

Permalink
Merge pull request #1005 from booky10/fix/more-bungee-injector-issues
Browse files Browse the repository at this point in the history
  • Loading branch information
booky10 authored Sep 23, 2024
2 parents 2fac9dc + d61c690 commit 4aae570
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ public User getUser(@NotNull Object player) {
protected void log(Level level, @Nullable NamedTextColor color, String message) {
// First we must strip away the color codes that might be in this message
message = STRIP_COLOR_PATTERN.matcher(message).replaceAll("");
System.out.println(message);
ProxyServer.getInstance().getLogger().info(message);
// TODO: Remove "[com.github.retrooper.packetevents.PacketEventsAPI]:" From logger
// PacketEvents.getAPI().getLogger().log(level, color != null ? (color.toString()) : "" + message);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,9 @@ private void recompress(ChannelHandlerContext ctx, ByteBuf buffer, ChannelPromis
} catch (InvocationTargetException exception) {
throw new EncoderException("Error while recompressing bytebuf " + buffer.readableBytes(), exception);
} finally {
out.clear();
outWrapper.handle.recycle(outWrapper);
buffer.release();
}
}

Expand Down

0 comments on commit 4aae570

Please sign in to comment.