mirror of
https://github.com/luanti-org/luanti.git
synced 2025-09-30 19:22:14 +00:00
parent
7c88996210
commit
fd3588d49c
8 changed files with 31 additions and 21 deletions
|
@ -572,8 +572,8 @@ void ServerEnvironment::activateBlock(MapBlock *block)
|
|||
return;
|
||||
|
||||
// Run node timers
|
||||
block->step((float)dtime_s, [&](v3s16 p, MapNode n, f32 d) -> bool {
|
||||
return m_script->node_on_timer(p, n, d);
|
||||
block->step((float)dtime_s, [&](v3s16 p, MapNode n, NodeTimer t) -> bool {
|
||||
return m_script->node_on_timer(p, n, t.elapsed, t.timeout);
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -999,8 +999,8 @@ void ServerEnvironment::step(float dtime)
|
|||
}
|
||||
|
||||
// Run node timers
|
||||
block->step(dtime, [&](v3s16 p, MapNode n, f32 d) -> bool {
|
||||
return m_script->node_on_timer(p, n, d);
|
||||
block->step(dtime, [&](v3s16 p, MapNode n, NodeTimer t) -> bool {
|
||||
return m_script->node_on_timer(p, n, t.elapsed, t.timeout);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue