fix: Correct packetId reference in BuildingRemovePacket to use the appropriate Enums

This commit is contained in:
2025-12-15 09:30:25 +01:00
parent 71e1e09c75
commit db850885f6

View File

@@ -1,12 +1,13 @@
using System; using System;
using System.Reflection; using System.Reflection;
using UnityEngine; using UnityEngine;
using KCM.Enums;
namespace KCM.Packets.Game.GameBuilding namespace KCM.Packets.Game.GameBuilding
{ {
public class BuildingRemovePacket : Packet public class BuildingRemovePacket : Packet
{ {
public override ushort packetId => (ushort)Enums.Packets.BuildingRemove; public override ushort packetId => (ushort)Packets.BuildingRemove;
// Flag to prevent infinite loop when removing buildings from packet // Flag to prevent infinite loop when removing buildings from packet
public static bool isProcessingPacket = false; public static bool isProcessingPacket = false;