mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-22 12:39:43 +00:00
tweaks to inv to make it better on serverside, fixed eattile, spiders are a bit faster
This commit is contained in:
parent
e28498c4c2
commit
89717f86a4
4 changed files with 32 additions and 31 deletions
|
|
@ -12,7 +12,10 @@ abstract class ItemTool extends Item
|
|||
return true;
|
||||
}
|
||||
public function useOn($object, $force = false){
|
||||
if(($object instanceof Entity) and !$this->isSword()){
|
||||
|
||||
if($this->isSword() && !($object instanceof Entity)){
|
||||
$this->meta += 2;
|
||||
}else if(($object instanceof Entity) && !$this->isSword()){
|
||||
$this->meta += 2;
|
||||
}else{
|
||||
$this->meta++;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue