mirror of
https://github.com/tacigar/maidroid.git
synced 2025-07-09 19:20:19 +02:00
[FIX] Fix on_punch bug of maidroid
This commit is contained in:
@ -361,13 +361,13 @@ function maidroid.register_maidroid(product_name, def)
|
||||
self.pause = false
|
||||
if self.core_name ~= "" then
|
||||
local core = maidroid.registered_cores[self.core_name]
|
||||
core.on_pause(self)
|
||||
core.on_resume(self)
|
||||
end
|
||||
else
|
||||
self.pause = true
|
||||
if self.core_name ~= "" then
|
||||
local core = maidroid.registered_cores[self.core_name]
|
||||
core.on_resume(self)
|
||||
core.on_pause(self)
|
||||
end
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user