mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 12:09:43 +00:00
water damage tweaks, using php8 pack functions
This commit is contained in:
parent
229a563ff5
commit
68b8232f07
17 changed files with 46 additions and 76 deletions
|
|
@ -336,7 +336,7 @@ class Level{
|
|||
}
|
||||
}
|
||||
|
||||
public function onTick(PocketMinecraftServer $server){
|
||||
public function onTick(PocketMinecraftServer $server, $currentTime){
|
||||
//$ents = $server->api->entity->getAll($this);
|
||||
if(!$this->stopTime) ++$this->time;
|
||||
for($cX = 0; $cX < 16; ++$cX){
|
||||
|
|
@ -368,7 +368,7 @@ class Level{
|
|||
++$this->totalMobsAmount;
|
||||
}
|
||||
if($e->isPlayer() || $e->needsUpdate){
|
||||
$e->update();
|
||||
$e->update($currentTime);
|
||||
if(!$e->isPlayer()) $post[] = $k;
|
||||
}
|
||||
}
|
||||
|
|
@ -417,7 +417,7 @@ class Level{
|
|||
}
|
||||
$block->position($pos);
|
||||
if($direct === true){
|
||||
$this->addBlockToSendQueue($pos->x, $pos->y, $pos->z, $pos->id, $pos->meta);
|
||||
$this->addBlockToSendQueue($pos->x, $pos->y, $pos->z, $block->id, $block->meta);
|
||||
}else{
|
||||
$i = ($pos->x >> 4) . ":" . ($pos->y >> 4) . ":" . ($pos->z >> 4);
|
||||
if(!isset($this->changedBlocks[$i])){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue