From dd1e25969e0e1665399e756548fa44ac7217b8e4 Mon Sep 17 00:00:00 2001 From: Kazhnuz Date: Sun, 7 Apr 2019 22:46:28 +0200 Subject: [PATCH] modules/world: improve keys sending to player object --- gamecore/modules/world/baseworld.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gamecore/modules/world/baseworld.lua b/gamecore/modules/world/baseworld.lua index 8436397..389b77b 100644 --- a/gamecore/modules/world/baseworld.lua +++ b/gamecore/modules/world/baseworld.lua @@ -104,7 +104,8 @@ end function BaseWorld:sendInputToPlayers(actor) for i,v in ipairs(self.players) do --TODO: make the player get from a selected source inputs - v.actor:getInput(self.scene.keys) + local keys = self.scene.sources[v.sourceid].keys + v.actor:getInput(keys) end end