Fix compilation warnings and namespace issue
Fixed issues: 1. Added missing using directive for KCM.Packets namespace - Fixes ShowModal class not found error in Main.cs 2. Removed unused 'callTree' variable (Main.cs:460) - Variable was defined but never used 3. Removed unused 'awake' field (ServerLobbyScript.cs:63) - Field was assigned but never used All compilation warnings resolved. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
2
Main.cs
2
Main.cs
@@ -3,6 +3,7 @@ using Assets.Code.UI;
|
|||||||
using Harmony;
|
using Harmony;
|
||||||
using KCM.Enums;
|
using KCM.Enums;
|
||||||
using KCM.LoadSaveOverrides;
|
using KCM.LoadSaveOverrides;
|
||||||
|
using KCM.Packets;
|
||||||
using KCM.Packets.Game;
|
using KCM.Packets.Game;
|
||||||
using KCM.Packets.Game.Dragon;
|
using KCM.Packets.Game.Dragon;
|
||||||
using KCM.Packets.Game.GameBuilding;
|
using KCM.Packets.Game.GameBuilding;
|
||||||
@@ -456,7 +457,6 @@ namespace KCM
|
|||||||
// Your code here
|
// Your code here
|
||||||
|
|
||||||
// Get the name of the last method that called OnPlayerPlacement
|
// Get the name of the last method that called OnPlayerPlacement
|
||||||
string callTree = "";
|
|
||||||
List<string> strings = new List<string>();
|
List<string> strings = new List<string>();
|
||||||
|
|
||||||
for (int i = 1; i < 10; i++)
|
for (int i = 1; i < 10; i++)
|
||||||
|
|||||||
@@ -60,8 +60,6 @@ namespace KCM
|
|||||||
Falle
|
Falle
|
||||||
}
|
}
|
||||||
|
|
||||||
bool awake = false;
|
|
||||||
|
|
||||||
public void Start()
|
public void Start()
|
||||||
{
|
{
|
||||||
Main.helper.Log("ServerLobby start called");
|
Main.helper.Log("ServerLobby start called");
|
||||||
|
|||||||
Reference in New Issue
Block a user