Correct wrong assumption in comment

This commit is contained in:
EnderKill98 2024-04-16 01:40:45 +02:00
parent 3529607761
commit 3e359b6435

View File

@ -327,7 +327,7 @@ public class SongPlayer implements ClientTickEvents.StartWorldTick {
} }
if(lastInteractAt != -1L) { if(lastInteractAt != -1L) {
// Paper allows 8 interacts per 300 ms // Paper allows 8 interacts per 300 ms (actually 9 it turns out, but lets keep it a bit lower anyway)
availableInteracts += ((System.currentTimeMillis() - lastInteractAt) / (310.0 / 8.0)); availableInteracts += ((System.currentTimeMillis() - lastInteractAt) / (310.0 / 8.0));
availableInteracts = Math.min(8f, Math.max(0f, availableInteracts)); availableInteracts = Math.min(8f, Math.max(0f, availableInteracts));
}else { }else {