ZONE_BASE/RADIUS not registering in the DB

if not _DATABASE:FindZone(ZoneName) then
	  _EVENTDISPATCHER:CreateEventNewZone(self)
  end

-- problem when creating zones on the fly and trying to find them with :FindByName() laters
This commit is contained in:
Thomas
2022-10-05 14:19:39 +02:00
committed by GitHub
parent 8fa4c04b16
commit db85478381

View File

@@ -143,6 +143,9 @@ function ZONE_BASE:New( ZoneName )
self.ZoneName = ZoneName
if not _DATABASE:FindZone(ZoneName) then
_EVENTDISPATCHER:CreateEventNewZone(self)
end
--_DATABASE:AddZone(ZoneName,self)
return self