From 93b99f936a91244f6937d68f29d00408923998af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=90=E6=B2=90=E5=91=80?= <163636894+zimuya4153@users.noreply.github.com> Date: Thu, 11 Jul 2024 13:23:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DSpawnWanderingTrader=E4=BA=8B?= =?UTF-8?q?=E4=BB=B6=E5=9D=90=E6=A0=87=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/EventAPI.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();