implement player ticks in headless mode & prevent on_player_tick call if player chunk does not exists
This commit is contained in:
@@ -54,9 +54,8 @@ class PlayerController {
|
||||
PlayerInput input {};
|
||||
CameraControl camControl;
|
||||
BlocksController* blocksController;
|
||||
util::Clock playerTickClock;
|
||||
|
||||
float interactionTimer = 0.0f;
|
||||
|
||||
void updateKeyboard();
|
||||
void resetKeyboard();
|
||||
void updatePlayer(float delta);
|
||||
|
||||
Reference in New Issue
Block a user