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:
Dylan K. Taylor
2017-09-03 12:22:37 +01:00
parent 7483f22e8b
commit aa9fd1b4f9
2 changed files with 4 additions and 6 deletions

View File

@ -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;
}