Compatibility
Minecraft: Java Edition
Platforms
Supported environments
90% of ad revenue goes to creators
Support creators and Modrinth ad-free with Modrinth+Creators
Details
Changelog
CraftPresence Changes
v2.4.0 (06/04/2024)
A Detailed Changelog from the last release is available here
See the Mod Description or README for more info regarding the mod.
Changes
- (Backend) Updated Build Dependencies (Please see the appropriate repositories for changes)
- Unimined (
1.2.3
->1.2.5
) - ModPublisher (
2.1.1
->2.1.2
) - Fabric Loader (
0.15.10
->0.15.11
) - Lenni Reflect (
1.3.2
->1.3.4
) - UniCore (
1.0.10
->1.1.1
) - DiscordIPC (
0.8.7
->0.8.8
)
- Unimined (
- Adjusted the way
Dimension
andBiome
module data is loaded in MC 1.16+- These changes are designed to support auto-locating data related to data pack additions
- These changes also resolve issues where repeated Registry Lookups could cause a crash in both modules
- Added a new script function,
getComponent
, to support the newDataComponent
system introduced in MC 1.20.5+- Usage:
getComponent(data=DataComponentHolder, path=String)
- On versions below MC 1.20.5, an error will appear instead
- Usage:
- (Backend) The default formatting for a slider's display value is now
%.1f
instead of a raw append - Added a
Sync End Color
button to theColor Editor
UI- Pressing this button, will set the
endData
to the currentstartColor
data, effectively useful for quickly removing theendColor
data from the final saving
- Pressing this button, will set the
- Adjusted Mod Initialization in MC 1.7.10 and below to better detect (and avoid) running the mod on server-side
- This uses a similar system implemented for MC 1.13+ in v2.2.4
- This change is only applied for Forge, Risugami ModLoader, or users on similar modloaders
Fixes
- (Backend) Modified
ExtendedScreen#getButtonY
to properly respond toScrollPane
padding and to better clarify the logic- For screens where this is used, this places UI elements in the proper position comparable to v1.x versions
- Old Calculation:
(40 + (25 * (order - 1)))
- New Calculation
topPosition + (DEFAULT_ELEMENT_PADDING * (order + 1)) + (DEFAULT_ELEMENT_HEIGHT * order)
- (Backend) Fixed an issue where
ColorData#setEndColor
andColorData#setTexLocation
could be applied incorrectly- This fix was previously present in
ColorEditorGui#setCurrentData
but has been moved intoColorData
to remove duplicated logic and to resolve some edge-cases
- This fix was previously present in
- Fixed redundant formatting in
Color Editor
Slider UI elements- The RGBA sliders now use
Integer
formatting instead ofFloat
- The
Tint Factor
slider now uses a percentage value instead ofFloat
- The RGBA sliders now use
- Fixed edge-cases in the
Color Editor
where editing a nullendColor
after editingstartColor
would result in an incorrect result- This is caused from the
getEnd
call pulling thestartColor
if null, and only adjusting the value of one slider rather than all four - An additional case has been resolved where the
endColor
data wasn't being created, if the newstartColor
differs when it didn't before when usingsetStartColor
- This is caused from the
- (Backend) Fixed memory leaks that could occur through repeated
Module#toString
calls- This occurs due to this function utilizing GSON, and since we used this in
Module#hashCode
andModule#equals
, it was being called excessively - With this fix,
hashCode
andequals
functions for all Config Categories should be much more performant, followingPresenceData
formatting withObjects#hash
andObjects#equals
usage
- This occurs due to this function utilizing GSON, and since we used this in
- (Backend) Fixed memory leaks that could occur through repeated
FileUtils#findValidClass
calls- Caching has been added to this method, preventing repetitive calls to
Class#forName
- Caching has been added to this method, preventing repetitive calls to
- (Backend) Fixed a possible discrepancy between using
FileUtils#findValidClass
andFileUtils#scanClasses
- This relates to the
useClassLoader
param infindValidClass
, which now only defaults to true if below Java 16 - This behavior matches the behavior used in
ClassGraph
within `scanClasses
- This relates to the
- (Backend) Fixed memory leaks that could occur through
Lenni Reflect
reflection operations- This issue effects
StringUtils#getFields
,StringUtils#getMethods
, and methods using these functions - Caching has been implemented to the
RStream#of
,RStream#methods
, andRStream#fields
functions to avoid repetitive allocation
- This issue effects
More Information
Known Issues
Despite configuration compatibility being ensured between v1.8.x/v1.9.x and v2.0, caution is advised to ensure the best experience, while also baring in mind that features can be adjusted, removed, or added/iterated upon between releases.
The following known issues are present in this build:
- The HypherionMC Config Layer (To Convert a Simple RPC config to CraftPresence) contains the following known issues:
- Placeholders related to the realm event are currently unimplemented and parse as
{''}
.
- Placeholders related to the realm event are currently unimplemented and parse as
Please refer to the Mod Description or README to view more info relating to known issues.
Snapshot Build Info
Some Versions of this Mod are for Minecraft Snapshots or Experimental Versions, and as such, caution should be noted.
Any Snapshot Build released will be marked as ALPHA to match its Snapshot Status depending on tests done before release and issues found.
Snapshot Builds, depending on circumstances, may also contain changes for a future version of the mod, and will be noted
as so if this is the case with the -Staging
label.
Files
Metadata
Release channel
AlphaVersion number
2.4.0+24w20aLoaders
Game versions
24w20aDownloads
76Publication date
May 15, 2024 at 6:39 PMPublisher
CDAGaming
Owner