import { world } from "@minecraft/server";
import { addWardLocation } from "../C/Warding";
export function runEntityLoadAfterEvent(log) {
    world.afterEvents.entityLoad.subscribe((event) => {
        const entity = event.entity;
        try {
            if (entity && entity.dimension) {
                const entityId = entity.typeId;
                if (entityId === "kicu_mmad:lantern_of_warding") {
                    addWardLocation(log, entity);
                }
            }
        }
        catch { }
    });
}

//# sourceMappingURL=../../../../../_KiCuMountsBPDebug/kicu/mmad/ESS/EntityLoadEvent.js.map
