mirror of
https://github.com/MaddyThorson/StrawberryBF.git
synced 2025-07-18 19:41:54 +08:00
Grid collision check crash
This commit is contained in:
@ -313,12 +313,12 @@ namespace Strawberry
|
||||
|
||||
public bool Check(Grid grid)
|
||||
{
|
||||
return grid.Check(SceneHitbox);
|
||||
return grid != null && grid.Check(SceneHitbox);
|
||||
}
|
||||
|
||||
public bool Check(Grid grid, Point offset)
|
||||
{
|
||||
return grid.Check(SceneHitbox + offset);
|
||||
return grid != null && grid.Check(SceneHitbox + offset);
|
||||
}
|
||||
|
||||
public bool Check(Entity other)
|
||||
|
Reference in New Issue
Block a user