From 7e13ae2bdac7e1baabf962cdc37ff8f8d6fb239d Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Date: Tue, 4 Jun 2013 19:51:16 +0200 Subject: [PATCH] Leave improvement --- src/material/block/solid/Leaves.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/material/block/solid/Leaves.php b/src/material/block/solid/Leaves.php index 3efe1bcd5..90f41f24b 100644 --- a/src/material/block/solid/Leaves.php +++ b/src/material/block/solid/Leaves.php @@ -61,13 +61,13 @@ class LeavesBlock extends TransparentBlock{ public function onUpdate($type){ if($type === BLOCK_UPDATE_NORMAL){ - if(($this->meta & 0x04) === 0){ + if(($this->meta & 0b00001100) === 0){ $this->meta |= 0x08; $this->level->setBlock($this, $this, false); return BLOCK_UPDATE_RANDOM; } }elseif($type === BLOCK_UPDATE_RANDOM){ - if(($this->meta & 0x04) === 0 and ($this->meta & 0x08) > 0){ + if(($this->meta & 0b00001100) === 0x08){ $this->meta &= 0x03; if($this->findLog($this, array(), 0) === true){ $this->level->setBlock($this, $this, false);