update on_physics_update & update standard components
This commit is contained in:
@@ -279,13 +279,11 @@ void scripting::on_entities_update(int tps, int parts, int part) {
|
||||
lua::pop(L);
|
||||
}
|
||||
|
||||
void scripting::on_entities_physics_update(int tps, int parts, int part) {
|
||||
void scripting::on_entities_physics_update(float delta) {
|
||||
auto L = lua::get_main_state();
|
||||
lua::get_from(L, STDCOMP, "physics_update", true);
|
||||
lua::pushinteger(L, tps);
|
||||
lua::pushinteger(L, parts);
|
||||
lua::pushinteger(L, part);
|
||||
lua::call_nothrow(L, 3, 0);
|
||||
lua::pushnumber(L, delta);
|
||||
lua::call_nothrow(L, 1, 0);
|
||||
lua::pop(L);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user