Skip to content
This repository has been archived by the owner on Jan 21, 2024. It is now read-only.

Bug fixes #108

Merged
merged 3 commits into from
Aug 3, 2022
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
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,6 @@ See the patches list below.
[FlamePaper-0033] Dont check occluding hoppers
[FlamePaper-0034] Hopper item lookup optimizations
[FlamePaper-0102] Fixed chunk memory leak
[FlamePaper-0103] Limit CraftChatMessage iterations
[FlamePaper-0104] Return last slot by default
[FlamePaper-0105] Fix memory leaks by Minetick
[FlamePaper-0106] Fix sending irrelevant block updates to the client
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ static void loadComments() {
c.addComment("settings.chunk.threads", "The amount of threads used for chunks.");
c.addComment("settings.chunk.players-per-thread", "The amount of players for each thread.");
c.addComment("settings.use-tcp-nodelay", "Enables the TCP_NODELAY socket option.");
c.addComment("settings.faster-cannon-tracker", "Enables a faster cannon entity tracker.");
c.addComment("settings.faster-cannon-tracker", "Enables a faster cannon entity tracker. Please note that this can cause some incompatibilities with name tags for cannon entities.");
c.addComment("settings.fix-eat-while-running", "Fixes the eating while running bug.");
c.addComment("settings.hide-projectiles-from-hidden-players", "Hides projectiles from hidden players.");
c.addComment("settings.lag-compensated-potions", "Enables lag compesation for thrown potions.");
Expand Down Expand Up @@ -585,7 +585,7 @@ private static void enableTCPNODELAY() {
public static boolean useFasterCannonTracker;

private static void useFasterCannonTracker() {
useFasterCannonTracker = getBoolean("settings.faster-cannon-tracker", true);
useFasterCannonTracker = getBoolean("settings.faster-cannon-tracker", false);
}

public static boolean fixEatWhileRunning;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,15 +155,10 @@ public static String fromComponent(IChatBaseComponent component, EnumChatFormat
return "";
}
StringBuilder out = new StringBuilder();
// FlamePaper - Limit iterations to 2
int iterations = 0;

long start = System.currentTimeMillis();

for (IChatBaseComponent c : component) {
if (++iterations > 2) {
break;
}
ChatModifier modifier = c.getChatModifier();
out.append(modifier.getColor() == null ? defaultColor : modifier.getColor());
if (modifier.isBold()) {
Expand Down