mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 03:59:43 +00:00
New Entity update system, scheduled updates when needed only
This commit is contained in:
parent
3ac4b0af68
commit
66e635daeb
8 changed files with 91 additions and 50 deletions
|
|
@ -29,7 +29,11 @@ class FenceGateBlock extends TransparentBlock{
|
|||
public function __construct($meta = 0){
|
||||
parent::__construct(FENCE_GATE, $meta, "Fence Gate");
|
||||
$this->isActivable = true;
|
||||
$this->isFullBlock = false;
|
||||
if(($this->meta & 0x04) === 0x04){
|
||||
$this->isFullBlock = true;
|
||||
}else{
|
||||
$this->isFullBlock = false;
|
||||
}
|
||||
}
|
||||
public function place(Item $item, Player $player, Block $block, Block $target, $face, $fx, $fy, $fz){
|
||||
$faces = array(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue