mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Make node timers more efficient
This commit is contained in:
parent
27aff22a9b
commit
559dd99469
8 changed files with 125 additions and 77 deletions
|
@ -186,7 +186,7 @@ void content_nodemeta_deserialize_legacy(std::istream &is,
|
|||
meta->set(p, data);
|
||||
|
||||
if(need_timer)
|
||||
timers->set(p, NodeTimer(1., 0.));
|
||||
timers->set(NodeTimer(1., 0., p));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue