Closed lDiverse closed 10 years ago
Just done a commit for teleport with horse. It was a little bit of a bug that sometimes the inventory wouldn't update due to WorldChanged not being called. So following my update of moving all teleports to teleport with horse - I have this check.
One more commit, this basically disables horses from teleportating - other than in world.
So, I'm pretty sceptical of this - Will need to test immensely.
What this should do is split the world name down into one of three things:
worldname worldname the end worldname nether
No matter which one it is, the world name is the first element. So I split it up into the possible pieces, and get the first element and use that as the inventory name. If the world name is 'world' then I load survival as thats what we've been using since I coded the inventory handler.
No inventories should be lost except for those of nether/end inventories in the alternate worlds (not the main world)