mirror of
https://github.com/wassname/GarageServer.IO.git
synced 2026-08-05 12:40:47 +08:00
Removed set player state from client - should set from server
This commit is contained in:
@@ -34,14 +34,4 @@ PlayerController.prototype.addInput = function (id, input, sequence, time) {
|
||||
return true;
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
PlayerController.prototype.setState = function (id, state) {
|
||||
this.entities.some(function (player) {
|
||||
if (player.client.id === id) {
|
||||
player.state = state;
|
||||
player.inputs = [];
|
||||
return true;
|
||||
}
|
||||
});
|
||||
};
|
||||
Reference in New Issue
Block a user