mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 03:59:43 +00:00
sendChat will use different queue to send messages to client, chat messages are now ordered
This commit is contained in:
parent
992b6143cd
commit
75a6b66d29
3 changed files with 60 additions and 16 deletions
|
|
@ -41,14 +41,14 @@ class Painting extends Entity{
|
|||
}
|
||||
}
|
||||
|
||||
public $counter = 0;
|
||||
public $scounter = 0;
|
||||
public function update($now){
|
||||
if($this->closed === true){
|
||||
return false;
|
||||
}
|
||||
|
||||
if(++$this->counter >= 100){
|
||||
$this->counter = 0;
|
||||
if(++$this->scounter >= 100){
|
||||
$this->scounter = 0;
|
||||
if(!$this->survives() && !$this->dead){ //maybe dont check entity collision?
|
||||
$this->makeDead("nosurvive");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue