From 9a9ac6f2e1f0de24b43dd8dc7b34053b42b6ee58 Mon Sep 17 00:00:00 2001 From: Applevangelist Date: Tue, 1 Aug 2023 11:38:02 +0200 Subject: [PATCH] SCENERY --- Moose Development/Moose/Core/Set.lua | 2 +- Moose Development/Moose/Wrapper/Scenery.lua | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Moose Development/Moose/Core/Set.lua b/Moose Development/Moose/Core/Set.lua index a86a4d0af..b1e545f52 100644 --- a/Moose Development/Moose/Core/Set.lua +++ b/Moose Development/Moose/Core/Set.lua @@ -7621,7 +7621,7 @@ do -- SET_SCENERY --- Add SCENERY(s) to SET_SCENERY. -- @param #SET_SCENERY self - -- @param #string AddScenery A single SCENERY. + -- @param Wrapper.Scenery#SCENERY AddScenery A single SCENERY object. -- @return #SET_SCENERY self function SET_SCENERY:AddScenery( AddScenery ) self:F2( AddScenery:GetName() ) diff --git a/Moose Development/Moose/Wrapper/Scenery.lua b/Moose Development/Moose/Wrapper/Scenery.lua index 6a6f70bd9..d50c922e5 100644 --- a/Moose Development/Moose/Wrapper/Scenery.lua +++ b/Moose Development/Moose/Wrapper/Scenery.lua @@ -175,10 +175,11 @@ end function SCENERY:FindByZoneName( ZoneName ) local zone = ZoneName -- Core.Zone#ZONE if type(ZoneName) == "string" then - zone = ZONE:FindByName(ZoneName) + zone = ZONE:FindByName(ZoneName) -- Core.Zone#ZONE_BASE end local _id = zone:GetProperty('OBJECT ID') - BASE:T("Object ID ".._id) + --BASE:I(string.format("Object ID is: %s",_id or "none")) + --BASE:T("Object ID ".._id) if not _id then -- this zone has no object ID BASE:E("**** Zone without object ID: "..ZoneName.." | Type: "..tostring(zone.ClassName))