mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-16 09:55:22 +02:00
Add after_destruct and cache the existence of on_construct, on_destruct and after_destruct for quick skipping when a node does not have them
This commit is contained in:
@@ -144,6 +144,11 @@ struct ContentFeatures
|
||||
bool backface_culling;
|
||||
#endif
|
||||
|
||||
// Server-side cached callback existence for fast skipping
|
||||
bool has_on_construct;
|
||||
bool has_on_destruct;
|
||||
bool has_after_destruct;
|
||||
|
||||
/*
|
||||
Actual data
|
||||
*/
|
||||
|
Reference in New Issue
Block a user