mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 03:59:43 +00:00
Fixed some slot sending
This commit is contained in:
parent
adce1ad920
commit
5e45567c1d
2 changed files with 12 additions and 10 deletions
|
|
@ -217,7 +217,7 @@ class Entity extends Position{
|
|||
public function environmentUpdate(){
|
||||
$hasUpdate = false;
|
||||
$time = microtime(true);
|
||||
if($this->class === ENTITY_PLAYER and ($this->player instanceof Player) and $this->player->spawned === true){
|
||||
if($this->class === ENTITY_PLAYER and ($this->player instanceof Player) and $this->player->spawned === true and $this->player->blocked !== true){
|
||||
foreach($this->server->api->entity->getRadius($this, 1.5, ENTITY_ITEM) as $item){
|
||||
if(($time - $item->spawntime) >= 0.6){
|
||||
if(($this->player->gamemode & 0x01) === 0x00){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue