Fastload

Fastload

13M Downloads

[Feature] Disable config date update when there are no changes

ChristopherHaws opened this issue ยท 5 comments

commented

Hi there! I like to keep my config files in a private git repo since it helps me keep track of the changes and easily revert them if needed. This is one of a few mods that updates the date/time at the top of the file every time the server is restarted. Would it be possible to change this behavior to only change if values in the config file are being updated by the mod?

image

Thanks! :)

commented

I can't do that, properties files do not work that way

commented

although i'll see if I can do something

commented

Ye as I thought nothing can be done. I can't do anything about it unless I write my own config system, which won't happen.

commented

Here is a stack overflow that shows how this can be done: https://stackoverflow.com/questions/6184335/properties-store-suppress-timestamp-comment

commented

It cannot be done as the methods in the properties class is private.