mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 19:49:44 +00:00
mob bodies should drop
This commit is contained in:
parent
157f794c7f
commit
0aaa0e70df
4 changed files with 12 additions and 15 deletions
|
|
@ -86,13 +86,13 @@ class LevelImport{
|
|||
}
|
||||
$chunks->map = null;
|
||||
$chunks = null;
|
||||
if(file_exists$this->path . "level.dat") @unlink($this->path . "level.dat");
|
||||
if(file_exists$this->path . "level.dat_old") @unlink($this->path . "level.dat_old");
|
||||
if(file_exists$this->path . "player.dat") @unlink($this->path . "player.dat");
|
||||
if(file_exists$this->path . "entities.dat") @unlink($this->path . "entities.dat");
|
||||
if(file_exists$this->path . "chunks.dat") @unlink($this->path . "chunks.dat");
|
||||
if(file_exists$this->path . "chunks.dat.gz") @unlink($this->path . "chunks.dat.gz");
|
||||
if(file_exists$this->path . "tiles.dat") @unlink($this->path . "tiles.dat");
|
||||
if(file_exists($this->path . "level.dat")) @unlink($this->path . "level.dat");
|
||||
if(file_exists($this->path . "level.dat_old")) @unlink($this->path . "level.dat_old");
|
||||
if(file_exists($this->path . "player.dat")) @unlink($this->path . "player.dat");
|
||||
if(file_exists($this->path . "entities.dat")) @unlink($this->path . "entities.dat");
|
||||
if(file_exists($this->path . "chunks.dat")) @unlink($this->path . "chunks.dat");
|
||||
if(file_exists($this->path . "chunks.dat.gz")) @unlink($this->path . "chunks.dat.gz");
|
||||
if(file_exists($this->path . "tiles.dat")) @unlink($this->path . "tiles.dat");
|
||||
unset($chunks, $level, $entities, $tiles, $nbt);
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue