ServerCore icon indicating copy to clipboard operation
ServerCore copied to clipboard

Bug due to calculation of time over a distance.

Open SoBeeIt opened this issue 1 year ago • 3 comments

Describe the bug does the following every ~1 seconds due to it calculating over a distance: autosave-interval-seconds: 300 Expected behavior does it every 300 seconds. Versions 1.21.1 ServerCore: 1.5.5+1.21.1 Minecraft: using fabric Mod incompatibilities No other mods present.

SoBeeIt avatar Sep 15 '24 19:09 SoBeeIt

I'm not entirely sure what you meant. Does it run auto saves every 1 second when auto-save-interval: 300? The actual calculated time until the next autosave is dependent on the set tickrate of the server (from /tick), is that what you meant by 'a distance'?

I also seem unable to reproduce this if the above is the issue.

Wesley1808 avatar Sep 15 '24 19:09 Wesley1808

it saves every 1 second with auto-save-interval: 300(it appears to have been caused by testing mipmap.)

SoBeeIt avatar Sep 15 '24 20:09 SoBeeIt

All it really does is replace a single constant value of 300 in vanilla for computing the next gametick the game will autosave at. Keep in mind that there are other ways to trigger saves, such as /save-all or opening the escape menu.

If you are getting this issue with a value of 300 with servercore you should be able to pull it off without it aswell. In any case I don't seem able to reproduce it, please make sure the saves aren't actually caused by any of the above reasons.

Wesley1808 avatar Sep 16 '24 10:09 Wesley1808