mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 08:44:01 +00:00
Remove redundant code from Entity->entityBaseTick()
this will never be called because onUpdate() checks this and returns.
This commit is contained in:
parent
9fb93985d6
commit
d9769360fe
@ -1131,16 +1131,6 @@ abstract class Entity extends Location implements Metadatable, EntityIds{
|
||||
|
||||
$this->justCreated = false;
|
||||
|
||||
if(!$this->isAlive()){
|
||||
$this->removeAllEffects();
|
||||
$this->despawnFromAll();
|
||||
if(!$this->isPlayer){
|
||||
$this->close();
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
if(count($this->changedDataProperties) > 0){
|
||||
$this->sendData($this->hasSpawned, $this->changedDataProperties);
|
||||
$this->changedDataProperties = [];
|
||||
|
Loading…
x
Reference in New Issue
Block a user