mirror of
https://github.com/MaddyThorson/StrawberryBF.git
synced 2026-11-30 00:08:31 +08:00
Grid collision check crash
This commit is contained in:
1 parent
ad9acf4fe1
commit
f6eabf5fc3
2 files changed
+4
-4
No files matched your search
+2
-2
@@ -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