mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 02:42:58 +00:00
Remove redundant gamemode checks
The caller will check the player's gamemode, so there is no use for these checks.
This commit is contained in:
@ -64,9 +64,8 @@ class Sugarcane extends Flowable{
|
||||
$this->meta = 0;
|
||||
$this->getLevel()->setBlock($this, $this, true);
|
||||
}
|
||||
if(($player->gamemode & 0x01) === 0){
|
||||
$item->count--;
|
||||
}
|
||||
|
||||
$item->count--;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user