mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 12:09:43 +00:00
Another fix
This commit is contained in:
parent
3023df2033
commit
8e127e60a0
4 changed files with 11 additions and 7 deletions
|
|
@ -131,6 +131,12 @@ class Item{
|
|||
|
||||
}
|
||||
|
||||
public function useOn($object){
|
||||
if($this->isTool()){
|
||||
$this->meta++;
|
||||
}
|
||||
}
|
||||
|
||||
final public function isTool(){
|
||||
return ($this->isPickaxe() !== false or $this->isAxe() !== false or $this->isShovel() !== false or $this->isSword() !== false or $this->isHoe() !== false);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue