mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 02:51:49 +00:00
cleanup
This commit is contained in:
parent
792ee63f22
commit
b98954f95e
5 changed files with 11 additions and 9 deletions
|
|
@ -293,7 +293,7 @@ void Player::deserialize(const dv::value& src) {
|
|||
setSpawnPoint(glm::vec3(
|
||||
sparr[0].asNumber(), sparr[1].asNumber(), sparr[2].asNumber()));
|
||||
|
||||
if (src.has("max-interaction-distance")) maxInteractionDistance = src["max-interaction-distance"].asNumber();
|
||||
src.at("max-interaction-distance").get(maxInteractionDistance);
|
||||
|
||||
flight = src["flight"].asBoolean();
|
||||
noclip = src["noclip"].asBoolean();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue