Fix: Always up contact no matter it was downed or not

This commit is contained in:
LmeSzinc 2023-10-24 00:24:22 +08:00
parent c3a3f43b55
commit 71d63fe379

View File

@ -101,9 +101,8 @@ class JoystickContact:
def up(self): def up(self):
builder = self.builder builder = self.builder
if self.is_downed: builder.up().commit()
builder.up().commit() builder.send()
builder.send()
self.prev_point = None self.prev_point = None
def set(self, direction, run=True): def set(self, direction, run=True):