1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-06 17:41:04 +00:00

Add proff of concept for blocks callback.

This commit is contained in:
SFENCE 2025-04-09 20:27:26 +02:00
parent a00b9cab36
commit 18c740712a
7 changed files with 212 additions and 0 deletions

View file

@ -41,6 +41,9 @@ public:
// Determines whether there are any on_mapblocks_changed callbacks
bool has_on_mapblocks_changed();
// Calll Lua callback for block
void block_callback(const v3s16 blockpos, ScriptCallbackState *state);
// Initializes environment and loads some definitions from Lua
void initializeEnvironment(ServerEnvironment *env);