SOLVED! [Orange Custom Events] problem with copying via script

I'm using @Hudell 's Orange Custom Events to copy events from another map.
Script call looks like this:

$gameMap.copyEventFrom(1, 2, 8, 12, true)


When I'm command this in custom events, it's okay.
Same thing when I'm command it in console.
It creates event 2 from map 1 on coords 8x12.
Problem is when I'm command this in my own plugin (js file). Sure, it creates that event, but problem is when I'm re-enter map. It creates the same event on old event in the same place. This isn't happening while commandind this via RPG Maker or console.

Is it possible that Scene_Interpreter is a prototype for my function with this call?

@Hudell maybe you can help, please?
You'll have to share your code for me to check.
You'll have to share your code for me to check.

Code:
   /**
    /**
    * tilling soil action
    */
    Game_Interpreter.prototype.doTilling = function(tiles) {
        for(var i = 0; i < tiles.length; i++) {
            var gameTile = tiles[i];
          
            if(this.isTillable(gameTile)) {
                var staminaLeft = $gameVariables.value(globalVars.staminaId);
     

                $gameMap.copyEventFrom(globalVars.tempMap.mapId, globalVars.tempMap.tilledId, gameTile.x , gameTile.y, false); //this cause problem
              
                var gameEvent = this.getEventXy([gameTile])[0];

                gameEvent.requestAnimation(playerActions.tilling.animationId);
                $gameVariables.setValue(globalVars.staminaId, staminaLeft-1);
            }
          
        }
      
    }

Edit: Found the problem... false at the end of $gameMap.copyEventFrom should be true. Sorry for bothering you, looks like it works now.

Original thread: https://forums.rpgmakerweb.com/threads/solved-orange-custom-events-problem-with-copying-via-script.88013/