This commit is contained in:
ArkQuark 2022-03-08 16:23:48 +03:00
parent 0261a176be
commit df75cf941a
6 changed files with 23 additions and 21 deletions

View file

@ -964,10 +964,10 @@ class Entity extends Position{
CHAIN_CHESTPLATE => 5,
CHAIN_LEGGINGS => 4,
CHAIN_BOOTS => 1,
GOLD_HELMET => 1,
GOLD_CHESTPLATE => 5,
GOLD_LEGGINGS => 3,
GOLD_BOOTS => 1,
GOLDEN_HELMET => 1,
GOLDEN_CHESTPLATE => 5,
GOLDEN_LEGGINGS => 3,
GOLDEN_BOOTS => 1,
IRON_HELMET => 2,
IRON_CHESTPLATE => 6,
IRON_LEGGINGS => 5,

View file

@ -70,13 +70,13 @@ class SmallTreeObject extends TreeObject{
// Now build the tree (from the top down)
$leaflevel = 0;
for( $yy = ($this->trunkHeight + 1); $yy >= 0; --$yy )
for( $yy = ($this->trunkHeight); $yy >= 0; --$yy )
{
if( $leaflevel < self::$leavesHeight )
{
// The size is a slight variation on the trunkheight
$radius = self::$leafRadii[ $leaflevel ] + $leafPre;
$bRadius = 3;
$bRadius = 2;
for( $xx = -$bRadius; $xx <= $bRadius; ++ $xx )
{
for( $zz = -$bRadius; $zz <= $bRadius; ++ $zz )
@ -99,6 +99,7 @@ class SmallTreeObject extends TreeObject{
$trunkpos = new Vector3( $pos->x, $pos->y + $yy, $pos->z );
$level->setBlockRaw($trunkpos, new WoodBlock( $this->type ) );
}
}
}
}