fix in objects mod
This commit is contained in:
parent
6a797565a2
commit
b1b2270a9d
|
@ -11,8 +11,9 @@ obj = inherit(obj, function(v)
|
||||||
end
|
end
|
||||||
return v
|
return v
|
||||||
end)
|
end)
|
||||||
|
|
||||||
room = inherit(room, function(v)
|
room = inherit(room, function(v)
|
||||||
if v._enter then
|
if v.enter then
|
||||||
v.enter = hook(v.enter, function(f, s, from, ...)
|
v.enter = hook(v.enter, function(f, s, from, ...)
|
||||||
return f(s, ref(from), unpack(arg))
|
return f(s, ref(from), unpack(arg))
|
||||||
end)
|
end)
|
||||||
|
|
Reference in a new issue