Skip to content

Fix game time overflow due to long casting to int - #2

Open
LOOHP wants to merge 1 commit into
Serilum:1.21.8from
LOOHP:1.21.8
Open

Fix game time overflow due to long casting to int#2
LOOHP wants to merge 1 commit into
Serilum:1.21.8from
LOOHP:1.21.8

Conversation

@LOOHP

@LOOHP LOOHP commented Aug 28, 2025

Copy link
Copy Markdown

This PR fixes an issue where gametime overflows and stops behaving correctly when the gametime exceeds the Java integer limit. Although you may only set the gametime to a value within the integer limit, the game can naturally tick over this limit (1242 real-life days), or setting it using tools like NBT Explorer.

@AikoAtExact

Copy link
Copy Markdown

I'd like to check this change locally.
@ricksouth can you provide some help on building the mod?
running gradle build does give me a lot of jar files.. but none that I can put into my clients mod folder that runs. It appears to have something todo with the collective package not being available (though I installed it and build against the same version).
The message I get is that com.natamus.collective.check.ShouldLoadCheck cannot be found from the ModFabric class.

@LOOHP

LOOHP commented Jan 13, 2026

Copy link
Copy Markdown
Author

@AikoAtExact I'm not sure if the author monitors this pull request section. If you know any alternative ways to contact them might be worth trying.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants