mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-06 01:51:51 +00:00
Merge branch 'stable' into next-minor
This commit is contained in:
commit
86bcc49972
@ -31,7 +31,8 @@ use pocketmine\math\Vector3;
|
|||||||
use pocketmine\player\Player;
|
use pocketmine\player\Player;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Called when a player interacts or touches a block (including air?)
|
* Called when a player interacts or touches a block.
|
||||||
|
* This is called for both left click (start break) and right click (use).
|
||||||
*/
|
*/
|
||||||
class PlayerInteractEvent extends PlayerEvent implements Cancellable{
|
class PlayerInteractEvent extends PlayerEvent implements Cancellable{
|
||||||
use CancellableTrait;
|
use CancellableTrait;
|
||||||
|
@ -878,7 +878,7 @@ class World implements ChunkManager{
|
|||||||
//Update entities that need update
|
//Update entities that need update
|
||||||
Timings::$tickEntity->startTiming();
|
Timings::$tickEntity->startTiming();
|
||||||
foreach($this->updateEntities as $id => $entity){
|
foreach($this->updateEntities as $id => $entity){
|
||||||
if($entity->isClosed() or !$entity->onUpdate($currentTick)){
|
if($entity->isClosed() or $entity->isFlaggedForDespawn() or !$entity->onUpdate($currentTick)){
|
||||||
unset($this->updateEntities[$id]);
|
unset($this->updateEntities[$id]);
|
||||||
}
|
}
|
||||||
if($entity->isFlaggedForDespawn()){
|
if($entity->isFlaggedForDespawn()){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user