mirror of
https://github.com/Melledy/Grasscutter.git
synced 2024-11-22 03:05:34 +00:00
This reverts commit 50db3a20f5
.
This commit is contained in:
parent
50db3a20f5
commit
031f3bcd25
@ -709,8 +709,7 @@ public class Player implements PlayerHook, FieldFetch {
|
|||||||
public void onEnterRegion(SceneRegion region) {
|
public void onEnterRegion(SceneRegion region) {
|
||||||
this.getQuestManager().forEachActiveQuest(quest -> {
|
this.getQuestManager().forEachActiveQuest(quest -> {
|
||||||
if (quest.getTriggerData() != null &&
|
if (quest.getTriggerData() != null &&
|
||||||
quest.getTriggers().containsKey("ENTER_REGION_"+ region.config_id) &&
|
quest.getTriggers().containsKey("ENTER_REGION_"+ region.config_id)) {
|
||||||
region.getGroupId() == quest.getTriggerData().get("ENTER_REGION_" + region.config_id).getGroupId()) {
|
|
||||||
// If trigger hasn't been fired yet
|
// If trigger hasn't been fired yet
|
||||||
if (!Boolean.TRUE.equals(quest.getTriggers().put("ENTER_REGION_" + region.config_id, true))) {
|
if (!Boolean.TRUE.equals(quest.getTriggers().put("ENTER_REGION_" + region.config_id, true))) {
|
||||||
this.getSession().send(new PacketServerCondMeetQuestListUpdateNotify());
|
this.getSession().send(new PacketServerCondMeetQuestListUpdateNotify());
|
||||||
@ -724,8 +723,7 @@ public class Player implements PlayerHook, FieldFetch {
|
|||||||
|
|
||||||
public void onLeaveRegion(SceneRegion region) {
|
public void onLeaveRegion(SceneRegion region) {
|
||||||
this.getQuestManager().forEachActiveQuest(quest -> {
|
this.getQuestManager().forEachActiveQuest(quest -> {
|
||||||
if (quest.getTriggers().containsKey("LEAVE_REGION_" + region.config_id) &&
|
if (quest.getTriggers().containsKey("LEAVE_REGION_" + region.config_id)) {
|
||||||
region.getGroupId() == quest.getTriggerData().get("ENTER_REGION_" + region.config_id).getGroupId()) {
|
|
||||||
// If trigger hasn't been fired yet
|
// If trigger hasn't been fired yet
|
||||||
if (!Boolean.TRUE.equals(quest.getTriggers().put("LEAVE_REGION_" + region.config_id, true))) {
|
if (!Boolean.TRUE.equals(quest.getTriggers().put("LEAVE_REGION_" + region.config_id, true))) {
|
||||||
this.getSession().send(new PacketServerCondMeetQuestListUpdateNotify());
|
this.getSession().send(new PacketServerCondMeetQuestListUpdateNotify());
|
||||||
|
Loading…
Reference in New Issue
Block a user