loadData -> dbContext
This commit is contained in:
@@ -17,9 +17,9 @@ namespace ReallifeGamemode.Server.Managers
|
||||
[ServerEvent(Event.ResourceStart)]
|
||||
public void OnResourceStart()
|
||||
{
|
||||
using (var loadData = new DatabaseContext())
|
||||
using (var dbContext = new DatabaseContext())
|
||||
{
|
||||
foreach (SavedBlip b in loadData.Blips)
|
||||
foreach (SavedBlip b in dbContext.Blips)
|
||||
{
|
||||
if (b.Active == true)
|
||||
{
|
||||
@@ -28,7 +28,7 @@ namespace ReallifeGamemode.Server.Managers
|
||||
}
|
||||
}
|
||||
|
||||
foreach (ServerVehicle veh in loadData.ServerVehicles)
|
||||
foreach (ServerVehicle veh in dbContext.ServerVehicles)
|
||||
{
|
||||
if (!veh.Active) continue;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user