Deprecate get_player_velocity and add_player_velocity (#10173)

This commit is contained in:
rubenwardy
2020-10-04 00:33:45 +01:00
committed by GitHub
parent 41a6136f77
commit 3250b37e32
5 changed files with 58 additions and 67 deletions

View File

@@ -170,10 +170,11 @@ void ModApiBase::markAliasDeprecated(luaL_Reg *reg)
m_deprecated_wrappers.emplace(
std::pair<std::string, luaL_Reg>(reg->name, original_reg));
reg->func = l_deprecated_function;
} else {
last_func = reg->func;
last_name = reg->name;
}
last_func = reg->func;
last_name = reg->name;
++reg;
}
}