mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
Updated the BlockAPI::drop method
This commit is contained in:
parent
326864f889
commit
287fa7e551
6 changed files with 27 additions and 28 deletions
|
|
@ -25,7 +25,7 @@ the Free Software Foundation, either version 3 of the License, or
|
|||
|
||||
*/
|
||||
|
||||
abstract class Block{
|
||||
abstract class Block extends Vector3{
|
||||
public static $class = array(
|
||||
AIR => "AirBlock",
|
||||
STONE => "StoneBlock",
|
||||
|
|
@ -183,7 +183,7 @@ abstract class Block{
|
|||
}
|
||||
|
||||
final public function __toString(){
|
||||
return $this->name ." (".$this->id.":".$this->meta.")";
|
||||
return "Block ". $this->name ." (".$this->id.":".$this->meta.")";
|
||||
}
|
||||
|
||||
abstract function isBreakable(Item $item, Player $player);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue