MV Resolved

Hello, this swimming plugin is great. I've used it, but there's a problem. I'm using Swimming&Diving and EST_Build_And_Decor_EX. However, after using the swimming plugin, the EST_Build_And_Decor_EX plugin reports an error when I choose to place items. The specific error is "Uncaught TypeError: Cannot read property 'meta' of undefined." I'm at a loss as to what to do. I hope you can lend a hand and help me see if I can modify some of the Swimming&Diving code to be compatible with EST_Build_And_Decor_EX. Thank you very much.
In the swimming plugin, line 489, it says
Code:
if(!!$dataMap.events[this._eventId].meta["Swimming"]) {

Try
Code:
if (this.event() && this.event().meta && this.event().meta.Swimming) {
In the swimming plugin, line 489, it says
Code:
if(!!$dataMap.events[this._eventId].meta["Swimming"]) {

Try
Code:
if (this.event() && this.event().meta && this.event().meta.Swimming) {
Oh my god, it worked. You are my God! I really didn't expect it. I asked many people and found many ways to do it, but it didn't work. Thank you so much. Thank you for your help. I will always remember your help.
if you use mv 1.6.x with nwjs higher than 0.29, you can
shorten it to
if (this.event()?.meta.Swimming) {...} to make it more compact 🙂
Please don't edit your first post. It makes the thread unreadable and someon else might be helped by your question.

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/resolved.179709/