From 5c06763e871666c9cca06142e859ff06985eba97 Mon Sep 17 00:00:00 2001 From: Elias Fleckenstein Date: Thu, 11 Mar 2021 19:27:37 +0100 Subject: [PATCH] Add noise to client CSM API --- src/script/scripting_client.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/script/scripting_client.cpp b/src/script/scripting_client.cpp index 729645678..7e92eb576 100644 --- a/src/script/scripting_client.cpp +++ b/src/script/scripting_client.cpp @@ -36,6 +36,7 @@ with this program; if not, write to the Free Software Foundation, Inc., #include "lua_api/l_util.h" #include "lua_api/l_item.h" #include "lua_api/l_nodemeta.h" +#include "lua_api/l_noise.h" #include "lua_api/l_localplayer.h" #include "lua_api/l_camera.h" #include "lua_api/l_settings.h" @@ -71,6 +72,11 @@ ClientScripting::ClientScripting(Client *client): void ClientScripting::InitializeModApi(lua_State *L, int top) { LuaItemStack::Register(L); + LuaPerlinNoise::Register(L); + LuaPerlinNoiseMap::Register(L); + LuaPseudoRandom::Register(L); + LuaPcgRandom::Register(L); + LuaSecureRandom::Register(L); ItemStackMetaRef::Register(L); LuaRaycast::Register(L); StorageRef::Register(L);