mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 12:09:43 +00:00
isPickaxe replaced with getPickaxeLevel, reactor drops correct block now
This commit is contained in:
parent
81d46e71aa
commit
df0db01425
38 changed files with 73 additions and 60 deletions
|
|
@ -55,7 +55,7 @@ class BurningFurnaceBlock extends SolidBlock implements LightingBlock{
|
|||
if(($player->gamemode & 0x01) === 0x01){
|
||||
return 0.20;
|
||||
}
|
||||
switch($item->isPickaxe()){
|
||||
switch($item->getPickaxeLevel()){
|
||||
case 5:
|
||||
return 0.7;
|
||||
case 4:
|
||||
|
|
@ -73,7 +73,7 @@ class BurningFurnaceBlock extends SolidBlock implements LightingBlock{
|
|||
|
||||
public function getDrops(Item $item, Player $player){
|
||||
$drops = array();
|
||||
if($item->isPickaxe() >= 1){
|
||||
if($item->getPickaxeLevel() >= 1){
|
||||
$drops[] = array(FURNACE, 0, 1);
|
||||
}
|
||||
$t = ServerAPI::request()->api->tile->get($this);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue