mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 19:49:44 +00:00
better inventory sync
This commit is contained in:
parent
a298667be0
commit
f5c8b05a08
3 changed files with 104 additions and 28 deletions
|
|
@ -62,7 +62,7 @@ class Pig extends Animal implements Rideable{
|
|||
|
||||
if($slot->getID() === SADDLE){
|
||||
if(!$this->isSaddled()){
|
||||
$e->player->removeItem($slot->getID(), 0, 1);
|
||||
$e->player->removeItem($slot->getID(), 0, 1, send: true);
|
||||
$this->setSaddled(1);
|
||||
}
|
||||
return true; //avoid further interactions
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue