Fix broken door animations caused by continuous set_object_properties() messages sent to client
... which each time caused the animation to be resetmaster
parent
af46d180f8
commit
05704ac016
|
@ -285,7 +285,7 @@ function wagon:on_step(dtime)
|
|||
|
||||
--check infotext
|
||||
local outside=self:train().text_outside or ""
|
||||
if self.object:get_properties().infotext==outside then
|
||||
if self.object:get_properties().infotext~=outside then
|
||||
self.object:set_properties({infotext=outside})
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue