Allow player to be pushed off moving blocks

This commit is contained in:
James Campbell
2026-07-25 13:13:48 -04:00
parent 3ad36d2911
commit 8e077ff09d
6 changed files with 75 additions and 13 deletions

View File

@@ -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