tickmender-1.5.2.jar
Curse Maven Snippet
What's new
1.5.2 - 2026-10-27
Two new switches, both on by default: clumpsXpEffects and palNonServerPlayer. TickMender now has
49 switches. The 47 of 1.5.1 are unchanged, with their defaults. Both defects were found by the
automated pack runs of Enchanter's Toolkit in the Nytheria pack.
Clumps (clumpsXpEffects): Farm & Charm's "Rested" and Vinery's "Experience" add experience again
clumpsXpEffects: with Clumps 19.0.0.1 installed, two effects did nothing at all: "Rested" of Farm & Charm 1.1.29 ("Increases gained Experience Points") and "Experience" of Vinery 1.5.6 ("Increases Experience gained"). Both mods add their bonus inside the game's experience orb pickup (ExperienceOrbEntity.onPlayerCollision); Clumps takes over that pickup at the head of the method for every server player, does it itself (Mending included) and cancels the rest of it, so the code both mods changed never runs. The bonus is now added in Clumps' own value hook (FabricEventHandler.fireValueEvent), with the formula of both mods:xp + xp × (level + 1) × 0.5, rounded down (level I: half again; level II: once again). Rested comes first, as in the game; with both effects at level I an orb of 10 gives 22.- One small difference to the game without Clumps: Vinery's bonus is added before Mending, not to what Mending leaves, so with a damaged Mending item it also helps to repair. Everything else about the pickup (Clumps' merging, its own events, Mending) is unchanged; a player without the two effects gets exactly what Clumps gave before.
- It applies to Clumps 19.0.0.1 only, and each bonus only while its mod has the version whose
mixin was read (Farm & Charm 1.1.29, Vinery 1.5.6): a later version could add the bonus to Clumps
itself, and the player would get it twice. With another Clumps version the switch is
idle (written for Clumps 19.0.0.1, installed is ...).
Player Ability Lib (palNonServerPlayer): no crash for a player that is not a server player
palNonServerPlayer: KIBE 2.3.1 asks Player Ability Lib (Pal) 1.10.0, which it carries in its jar, at the end of every server-side player tick whether its abilities are on, and Pal answers by casting the player to its own interface, which only a real server player has. Any other player object on the server side (the mock player of the game's GameTest framework, a mod's own player object) made the tick of its world fail with aClassCastException(... cannot be cast to class io.github.ladysnake.pal.impl.PlayerAbilityView). Such a player has no abilities, so Pal'sisEnabledFornow answersfalsefor it. Real players and Fabric API's fake players (both server players) are asked exactly as before, and the client side keeps Pal's own refusal.- Real players were never affected; the crash showed up in the GameTests of Enchanter's Toolkit in the Nytheria pack. It applies to Pal 1.10.0 only.
Checked against the real mods
Both switches were run on a real Fabric 1.21.1 dedicated server with the real jars (Clumps
19.0.0.1, Farm & Charm 1.1.29, Vinery 1.5.6, KIBE 2.3.1 with Pal 1.10.0) by a new probe,
testing/run-xpeffects-probe.sh, once with both switches on and once with both off (the control
run). With the switches on, an orb of 10 gave 15 with Rested I, 20 with Rested II, 15 with
Experience I, 25 with Experience III and 22 with both, and the mock player was asked, ticked by
KIBE and granted and revoked an ability without an error; with them off, every orb gave its plain
value and all three mock player checks failed with the ClassCastException. The same run showed
that Open Parties and Claims and Framework, which also hook the start of the orb pickup, run before
Clumps, so Clumps does not skip them. Build of 1.5.2: 713 tests (697 in test, 8 in
testFixesOff, 8 in testFabricApi), all green.
Updating from 1.5.1
Replace the jar. The two new switches are added to an existing config/tickmender.json with their
default (true); everything already in the file is kept. Whoever wants the old behaviour sets
"clumpsXpEffects": false or "palNonServerPlayer": false. Nothing else changes.
This mod has no additional files