mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 20:19:44 +00:00
names were fixed, ->loop->stop();
This commit is contained in:
parent
50006a0189
commit
f6897cf862
242 changed files with 111 additions and 166 deletions
15
src/material/item/tool/ShearsItem.php
Executable file
15
src/material/item/tool/ShearsItem.php
Executable file
|
|
@ -0,0 +1,15 @@
|
|||
<?php
|
||||
|
||||
class ShearsItem extends ItemTool{
|
||||
public function __construct($meta = 0, $count = 1){
|
||||
parent::__construct(SHEARS, $meta, $count, "Shears");
|
||||
}
|
||||
|
||||
public function useOn($object, $force = false){
|
||||
if(($object instanceof Sheep) and $this->id === SHEARS){
|
||||
$this->meta++;
|
||||
return true;
|
||||
}
|
||||
parent::useOn($object, $force);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue