mirror of
https://github.com/CyberL1/Minecraft-Realms-Emulator.git
synced 2024-11-21 21:58:21 -05:00
feat: assign address to world on creation
This commit is contained in:
parent
db64404c92
commit
ca57e03ee3
@ -96,8 +96,16 @@ namespace Minecraft_Realms_Emulator.Controllers
|
||||
SubscriptionType = SubscriptionType.NORMAL.ToString()
|
||||
};
|
||||
|
||||
var connection = new Connection
|
||||
{
|
||||
World = world,
|
||||
Address = "127.0.0.1"
|
||||
};
|
||||
|
||||
_context.Worlds.Update(world);
|
||||
|
||||
_context.Subscriptions.Add(subscription);
|
||||
_context.Connections.Add(connection);
|
||||
|
||||
_context.SaveChanges();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user