1.15.2 Rollbacking a minigame world: Unloading/loading worlds corrupts entity tracker

Discussion in 'Spigot Plugin Development' started by kangarko, Feb 27, 2020.

  1. Getting a strange issue (tested both 1.8.8 and 1.15.2) where if I use the vanilla Bukkit API to unload/load a world and then I get teleported to it and I die, it seems to break the server's logic.

    After I die, on 1.8.8 I get stuck in the sky with a server error message "
    IllegalStateException: Entity is already tracked" while on 1.15 I simply can no longer break blocks and mobs won't notice me, assuming the same happened.


    Any idea what's causing this? Seems like a problem in Spigot itself.