doormanager kaputt habs repariert
This commit is contained in:
@@ -46,7 +46,7 @@ namespace ReallifeGamemode.Server.Managers
|
|||||||
|
|
||||||
using (var dbContext = new DatabaseContext())
|
using (var dbContext = new DatabaseContext())
|
||||||
{
|
{
|
||||||
IQueryable<Door> NearDoors = dbContext.Doors.Where(d => d.Position.DistanceTo(player.Position) <= d.Radius);
|
List<Door> NearDoors = dbContext.Doors.ToList().Where(d => d.Position.DistanceTo(player.Position) <= d.Radius).ToList();
|
||||||
foreach (Door d in NearDoors)
|
foreach (Door d in NearDoors)
|
||||||
{
|
{
|
||||||
if (d != null)
|
if (d != null)
|
||||||
|
|||||||
Reference in New Issue
Block a user