Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/game/scripting/StarLuaComponents.hpp
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2023-07-04 20:45:43 +1000
committerKae <80987908+Novaenia@users.noreply.github.com>2023-07-04 20:45:43 +1000
commitbf7418073d727e70a6564d9b2d79a1430cdc75ac (patch)
treeb4707a01af7175efdb386899ceef8144da066d76 /source/game/scripting/StarLuaComponents.hpp
parente3461e90531345650fe70ada38d875a68f87f416 (diff)
Move input callback creation
Diffstat (limited to 'source/game/scripting/StarLuaComponents.hpp')
-rw-r--r--source/game/scripting/StarLuaComponents.hpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/source/game/scripting/StarLuaComponents.hpp b/source/game/scripting/StarLuaComponents.hpp
index ac18106..bc00309 100644
--- a/source/game/scripting/StarLuaComponents.hpp
+++ b/source/game/scripting/StarLuaComponents.hpp
@@ -283,11 +283,6 @@ void LuaWorldComponent<Base>::init(World* world) {
Base::setLuaRoot(world->luaRoot());
Base::addCallbacks("world", LuaBindings::makeWorldCallbacks(world));
-
- if (world->isClient()) {
- Base::addCallbacks("input", LuaBindings::makeInputCallbacks());
- }
-
Base::init();
}
@@ -295,8 +290,6 @@ template <typename Base>
void LuaWorldComponent<Base>::uninit() {
Base::uninit();
Base::removeCallbacks("world");
-
- Base::removeCallbacks("input");
}
template <typename Base>