Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix more bungee injector issues #1005

Merged
merged 3 commits into from
Sep 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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