Allow player to be pushed off moving blocks
This commit is contained in:
@@ -83,7 +83,7 @@ class _Directional:
|
||||
if self.aligned and not (p.bottom > r.top and p.top < r.bottom):
|
||||
return False
|
||||
if d == "left":
|
||||
ref = r.right if self.inclusive else r.right
|
||||
ref = r.right if self.inclusive else r.left
|
||||
if p.centerx >= ref:
|
||||
return False
|
||||
dist = ref - p.centerx
|
||||
|
||||
Reference in New Issue
Block a user