diff --git a/script.lua b/script.lua index 1f4f6b7..eac1566 100644 --- a/script.lua +++ b/script.lua @@ -286,9 +286,23 @@ end -- }}} -- syncState {{{ -function syncState() - ping.setSnoring(skin_state.snore_enabled) - ping.syncState(setLocalState()) +do + local counter=0 + function syncState() + -- ping.setSnoring(skin_state.snore_enabled) + if counter < 5 then + ping.syncState((setLocalState())) + counter=counter+1 + end + end + + local function cooldownDecay() + if counter>0 and world.getTime() % 4 == 0 then + counter = counter - 1 + end + end + + events.TICK:register(cooldownDecay,"syncStateCooldown") end do