Fix ShopVehicles, Upodate /goto
This commit is contained in:
@@ -659,9 +659,21 @@ namespace reallife_gamemode.Server.Commands
|
||||
return;
|
||||
}
|
||||
else
|
||||
{
|
||||
using (var dbContext = new DatabaseContext())
|
||||
{
|
||||
Entities.GotoPoint p = dbContext.GotoPoints.FirstOrDefault(x => x.Description == description);
|
||||
if(p == null)
|
||||
{
|
||||
SaveManager.SaveGotoPoint(player, description);
|
||||
}
|
||||
else
|
||||
{
|
||||
player.SendChatMessage("Einen Goto-Punkt mit dieser Bezeichnung gibt es schon!");
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
break;
|
||||
case "Vehicle":
|
||||
|
||||
@@ -21,7 +21,7 @@ namespace reallife_gamemode.Server.Entities
|
||||
public int Id { get; set; }
|
||||
|
||||
[ForeignKey("Shop")]
|
||||
public int ShopId { get; set; }
|
||||
public int? ShopId { get; set; }
|
||||
public Shop Shop { get; set; }
|
||||
|
||||
public VehicleHash Model { get; set; }
|
||||
|
||||
Reference in New Issue
Block a user