Skip to content
Snippets Groups Projects
Commit 2027896b authored by DarkGod's avatar DarkGod
Browse files

fix

parent f28cf7d7
No related branches found
No related tags found
No related merge requests found
......@@ -110,10 +110,12 @@ function _M:move(x, y, force)
end
if self.trail_particle then
local args = {}
args.src_x = self.old_x
args.src_y = self.old_y
args.proj_x = self.project.def.x
args.proj_y = self.project.def.y
if self.project then
args.src_x = self.old_x
args.src_y = self.old_y
args.proj_x = self.project.def.x
args.proj_y = self.project.def.y
end
local ps = Particles.new(self.trail_particle, 1, args)
ps.x = x
ps.y = y
......
......@@ -513,7 +513,7 @@ end
-- @param inven the inventory to look into
-- @param prop the property to look for
-- @param value the value to look for, can be a function
function _M:findInInventoryByObject(so)
function _M:findInInventoryByObject(inven, so)
for item, o in ipairs(inven) do
if o == so then return o, item end
end
......
......@@ -117,6 +117,8 @@ function _M:updateUI()
KeyBind:load("chat")
self.key:bindKeys() -- Make sure it updates
self.key:addBind("USERCHAT_TALK", function() profile.chat:talkBox(nil, true) end)
self:setFocus(self.c_list)
end
function _M:uiLogin(uis)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment