mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-03 03:50:40 +00:00
[Code] WorldContentServer Global to Singleton Cleanup (#4939)
This commit is contained in:
+3
-3
@@ -211,7 +211,7 @@ LoottableRepository::Loottable *Zone::GetLootTable(const uint32 loottable_id)
|
||||
{
|
||||
for (auto &e: m_loottables) {
|
||||
if (e.id == loottable_id) {
|
||||
if (!content_service.DoesPassContentFiltering(
|
||||
if (!WorldContentService::Instance()->DoesPassContentFiltering(
|
||||
ContentFlags{
|
||||
.min_expansion = e.min_expansion,
|
||||
.max_expansion = e.max_expansion,
|
||||
@@ -249,7 +249,7 @@ LootdropRepository::Lootdrop Zone::GetLootdrop(const uint32 lootdrop_id) const
|
||||
{
|
||||
for (const auto &e: m_lootdrops) {
|
||||
if (e.id == lootdrop_id) {
|
||||
if (!content_service.DoesPassContentFiltering(
|
||||
if (!WorldContentService::Instance()->DoesPassContentFiltering(
|
||||
ContentFlags{
|
||||
.min_expansion = e.min_expansion,
|
||||
.max_expansion = e.max_expansion,
|
||||
@@ -276,7 +276,7 @@ std::vector<LootdropEntriesRepository::LootdropEntries> Zone::GetLootdropEntries
|
||||
std::vector<LootdropEntriesRepository::LootdropEntries> entries = {};
|
||||
for (const auto &e: m_lootdrop_entries) {
|
||||
if (e.lootdrop_id == lootdrop_id) {
|
||||
if (!content_service.DoesPassContentFiltering(
|
||||
if (!WorldContentService::Instance()->DoesPassContentFiltering(
|
||||
ContentFlags{
|
||||
.min_expansion = e.min_expansion,
|
||||
.max_expansion = e.max_expansion,
|
||||
|
||||
Reference in New Issue
Block a user