mirror of
https://git.neolegacy.dev/neoStudiosLCE/neoLegacy.git
synced 2026-11-23 11:42:31 +01:00
TU46 Test content and patches
TU46 Test content, added missing commits by amending commit and cherry-picking to new branch, ready for iggy guis and tu46 bug fixes
This commit is contained in:
1 parent
8d6b69f599
commit
ff562d1644
497 files changed
+11187
-771
No files matched your search
@@ -561,7 +561,16 @@ void DirectoryLevelStorage::flushSaveFile(bool autosave)
|
||||
// 4J Added
|
||||
void DirectoryLevelStorage::resetNetherPlayerPositions()
|
||||
{
|
||||
if(app.GetResetNether())
|
||||
if(app.GetResetNether()) resetPlayerPositionsInDimension(LevelData::DIMENSION_NETHER);
|
||||
}
|
||||
|
||||
void DirectoryLevelStorage::resetEndPlayerPositions()
|
||||
{
|
||||
if(app.GetResetEnd()) resetPlayerPositionsInDimension(LevelData::DIMENSION_END);
|
||||
}
|
||||
|
||||
void DirectoryLevelStorage::resetPlayerPositionsInDimension(int dimension)
|
||||
{
|
||||
{
|
||||
#if defined(__PS3__) || defined(__ORBIS__) || defined(__PSVITA__)
|
||||
vector<FileEntry *> *playerFiles = m_saveFile->getValidPlayerDatFiles();
|
||||
@@ -579,7 +588,7 @@ void DirectoryLevelStorage::resetNetherPlayerPositions()
|
||||
{
|
||||
// If the player is in the nether, set their y position above the top of the nether
|
||||
// This will force the player to be spawned in a valid position in the overworld when they are loaded
|
||||
if(tag->contains(L"Dimension") && tag->getInt(L"Dimension") == LevelData::DIMENSION_NETHER && tag->contains(L"Pos"))
|
||||
if(tag->contains(L"Dimension") && tag->getInt(L"Dimension") == dimension && tag->contains(L"Pos"))
|
||||
{
|
||||
ListTag<DoubleTag> *pos = (ListTag<DoubleTag> *) tag->getList(L"Pos");
|
||||
pos->get(1)->data = DBL_MAX;
|
||||
|
||||
Reference in new issue
Block a user