Skip to content

Commit c153720

Browse files
committed
Fix entering pipes from light bridges
1 parent 17e4dfd commit c153720

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pipe.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ function pipe:inside(dir, c, b) --direction of entrance, cox or coy, player
201201
--all it needs is a collision
202202
if ((ph <= self.height) or bigmario) and --should he fit at all?
203203
py+ph > self.coy-1 and py < self.coy and --is the player touching the pipe entity
204-
py+ph*.5 < self.coy then --is the middle of the player within the pipe? (just to make it resonable)
204+
py+ph*.4 < self.coy then --is the middle of the player within the pipe? (just to make it resonable)
205205
return true
206206
end
207207
end

0 commit comments

Comments
 (0)