mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
Explosion performance improvements
This commit is contained in:
parent
8a4ebcc907
commit
2b0ad36e14
5 changed files with 38 additions and 24 deletions
|
|
@ -74,7 +74,6 @@ class PocketMinecraftServer{
|
|||
if(!defined("NO_THREADS")){
|
||||
$this->asyncThread = new AsyncMultipleQueue();
|
||||
}
|
||||
|
||||
console("[INFO] Loading extra.properties...");
|
||||
$this->extraprops = new Config(DATA_PATH . "extra.properties", CONFIG_PROPERTIES, [
|
||||
"version" => "5",
|
||||
|
|
@ -220,7 +219,11 @@ class PocketMinecraftServer{
|
|||
$this->interface->close();
|
||||
|
||||
if(!defined("NO_THREADS")){
|
||||
@$this->asyncThread->stop = true;
|
||||
$this->asyncThread->synchronized(function ($t){
|
||||
$t->stop = true;
|
||||
$t->notify();
|
||||
}, $this->asyncThread);
|
||||
//@$this->asyncThread->stop = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue