mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 20:19:44 +00:00
Added new Block properties (Block::isSolid, Block::isFullBlock)
This commit is contained in:
parent
8d00ef381d
commit
a795b64bab
36 changed files with 57 additions and 32 deletions
|
|
@ -32,7 +32,7 @@ class PaintingItem extends Item{
|
|||
}
|
||||
|
||||
public function onActivate(Level $level, Player $player, Block $block, Block $target, $face, $fx, $fy, $fz){
|
||||
if($target->isTransparent === false and $face > 1 and $block->isFlowable === true){
|
||||
if($target->isTransparent === false and $face > 1 and $block->isSolid === false){
|
||||
$server = ServerAPI::request();
|
||||
$faces = array(
|
||||
2 => 1,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue