mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
25cd58bd99
8 changed files with 29 additions and 7 deletions
|
|
@ -419,6 +419,12 @@ class BlockAPI{
|
|||
return $this->cancelAction($block, $player, false);
|
||||
}
|
||||
|
||||
if($target->isReplaceable === true){
|
||||
$block = $target;
|
||||
$hand->position($block);
|
||||
$face = -1;
|
||||
}
|
||||
|
||||
if($hand->isSolid === true and $player->entity->inBlock($block)){
|
||||
return $this->cancelAction($block, $player, false); //Entity in block
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue