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

Commit

Permalink
Bug fixes (#108)
Browse files Browse the repository at this point in the history
* Fix sign issue

* Disable the "faster cannon tracker" option by default

* Also update the comment for this option.

* Remove the corresponding FlamePaper patch from README.md
  • Loading branch information
windcolor-dev authored Aug 3, 2022
1 parent 400d8ac commit 924f79e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
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

0 comments on commit 924f79e

Please sign in to comment.