mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 20:19:44 +00:00
acacia somewhat fixed
This commit is contained in:
parent
0e796c8dd3
commit
9abc3cd409
2 changed files with 3 additions and 6 deletions
|
|
@ -1651,10 +1651,7 @@ class Player{
|
||||||
//$this->lastChunk = [$packet->chunkX, $packet->chunkZ];
|
//$this->lastChunk = [$packet->chunkX, $packet->chunkZ];
|
||||||
break;
|
break;
|
||||||
case ProtocolInfo::UPDATE_BLOCK_PACKET:
|
case ProtocolInfo::UPDATE_BLOCK_PACKET:
|
||||||
if($this->gamemode & 0x01 === 1){
|
$this->level->resendBlocksToPlayers[$this->CID]["{$packet->x}.{$packet->y}.{$packet->z}"] = true;
|
||||||
$this->level->setBlock(new Vector3($packet->x, $packet->y, $packet->z), BlockAPI::get($packet->block, $packet->meta));
|
|
||||||
}
|
|
||||||
$this->level->resendBlocksToPlayers[$this->CID]["{$packet->x}.{$packet->y}.{$packet->z}"] = true; //bad client i hate u
|
|
||||||
break;
|
break;
|
||||||
case ProtocolInfo::USE_ITEM_PACKET:
|
case ProtocolInfo::USE_ITEM_PACKET:
|
||||||
if(!($this->entity instanceof Entity)){
|
if(!($this->entity instanceof Entity)){
|
||||||
|
|
|
||||||
|
|
@ -43,7 +43,7 @@ class AcaciaTreeObject extends TreeObject{
|
||||||
|
|
||||||
$var17 = $level->level->getBlockID($var23, $var16, $var13);
|
$var17 = $level->level->getBlockID($var23, $var16, $var13);
|
||||||
|
|
||||||
if ($var17 == AIR || $var17 == LEAVES || $var17 == LEAVES2)
|
if ($var17 == AIR || $var17 == LEAVES || $var17 == LEAVES2 || $var17 == SAPLING)
|
||||||
{
|
{
|
||||||
$level->fastSetBlockUpdate($var23, $var16, $var13, TRUNK2, 0);
|
$level->fastSetBlockUpdate($var23, $var16, $var13, TRUNK2, 0);
|
||||||
$var14 = $var16;
|
$var14 = $var16;
|
||||||
|
|
@ -95,7 +95,7 @@ class AcaciaTreeObject extends TreeObject{
|
||||||
$var13 += Direction::offsetZ[$var15];
|
$var13 += Direction::offsetZ[$var15];
|
||||||
$var20 = $level->level->getBlockID($var23, $var19, $var13);
|
$var20 = $level->level->getBlockID($var23, $var19, $var13);
|
||||||
|
|
||||||
if ($var20 == AIR || $var20 == LEAVES || $var20 == LEAVES2)
|
if ($var20 == AIR || $var20 == LEAVES || $var20 == LEAVES2 || $var20 == SAPLING)
|
||||||
{
|
{
|
||||||
$level->fastSetBlockUpdate($var23, $var19, $var13, TRUNK2, 0);
|
$level->fastSetBlockUpdate($var23, $var19, $var13, TRUNK2, 0);
|
||||||
$var14 = $var19;
|
$var14 = $var19;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue