diff --git a/src/EventAPI.cpp b/src/EventAPI.cpp index a9225e3..fae1556 100644 --- a/src/EventAPI.cpp +++ b/src/EventAPI.cpp @@ -255,7 +255,7 @@ void Export_Event_API() { [Call](Event::EntityEvent::SpawnWanderingTraderBeforeEvent& ev) { bool result = true; try { - result = Call({ev.getPos(), 0}); + result = Call({ev.getPos(), ev.getRegion().getDimensionId()}); } catch (...) {} if (!result) { ev.cancel();