mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-12 16:15:20 +02:00
Refactor some Lua API functions in preparation for async env
This commit is contained in:
@@ -63,6 +63,8 @@ public:
|
||||
virtual IRollbackManager* getRollbackManager() { return NULL; }
|
||||
|
||||
// Shorthands
|
||||
// TODO: these should be made const-safe so that a const IGameDef* is
|
||||
// actually usable
|
||||
IItemDefManager *idef() { return getItemDefManager(); }
|
||||
const NodeDefManager *ndef() { return getNodeDefManager(); }
|
||||
ICraftDefManager *cdef() { return getCraftDefManager(); }
|
||||
|
Reference in New Issue
Block a user