From bf7418073d727e70a6564d9b2d79a1430cdc75ac Mon Sep 17 00:00:00 2001
From: Kae <80987908+Novaenia@users.noreply.github.com>
Date: Tue, 4 Jul 2023 20:45:43 +1000
Subject: Move input callback creation
---
source/game/scripting/StarLuaComponents.hpp | 7 -------
1 file changed, 7 deletions(-)
(limited to 'source/game/scripting/StarLuaComponents.hpp')
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::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
void LuaWorldComponent::uninit() {
Base::uninit();
Base::removeCallbacks("world");
-
- Base::removeCallbacks("input");
}
template
--
cgit v1.2.3