MihaiChirculete / WorldGuard

The fastest world protector in town for your PocketMine server!
GNU General Public License v3.0
58 stars 36 forks source link

Fixed teleporting and moving not updating the region first time #302

Closed JavierLeon9966 closed 1 year ago

JavierLeon9966 commented 2 years ago

When doing $this->plugin->updateRegion($player) it will update the player’s region with the player’s position before it actually goes to that position in events like PlayerMoveEvent and EntityTeleportEvent, so I added a delayed task of one tick to account for that.

suerion commented 2 years ago

Thanks for your pr, i had resolved it with an other resolution, but i think, i will add the request after 1 tick in our code :) thanks for your help