Don't Starve Together

Don't Starve Together

Beefalo keybind
ul_708 May 14, 2024 @ 5:27pm
[Bug+patch] mounting beefalo fails if the player is far away (has to walk first) and movement prediction is on
The cause of this bug is that vanilla expects the SendRPCToServer() call is 1 frame delayed from the controller:DoAction() call, if movement prediction is on. Copying the logic in PlayerController:OnRightClick(), replace each of the SendRPCToServer() calls with this:

if controller.locomotor == nil then -- Movement prediction is off SendRPCToServer(...) else -- Movement prediction is on act.preview_cb = function() SendRPCToServer(...) end end