mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-23 04:59:46 +00:00
cocoa block sides fix
This commit is contained in:
parent
0b10f2b8df
commit
fc93387ff1
2 changed files with 9 additions and 9 deletions
|
|
@ -1,6 +1,12 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
class CocoaBlock extends FlowableBlock{
|
class CocoaBlock extends FlowableBlock{
|
||||||
|
protected static $faces = [
|
||||||
|
2 => 0x00,
|
||||||
|
3 => 0x02,
|
||||||
|
4 => 0x03,
|
||||||
|
5 => 0x01
|
||||||
|
];
|
||||||
public function __construct($meta = 0){
|
public function __construct($meta = 0){
|
||||||
parent::__construct(COCOA, $meta, "tile.cocoa.name<");
|
parent::__construct(COCOA, $meta, "tile.cocoa.name<");
|
||||||
$this->isActivable = true;
|
$this->isActivable = true;
|
||||||
|
|
@ -12,13 +18,7 @@ class CocoaBlock extends FlowableBlock{
|
||||||
return false; //fix of placing invalid ids without array
|
return false; //fix of placing invalid ids without array
|
||||||
}
|
}
|
||||||
if($target->isTransparent === false){
|
if($target->isTransparent === false){
|
||||||
$faces = array(
|
$this->level->setBlock($this, BlockAPI::get($this->id, self::$faces[$face]), true, false, true);
|
||||||
2 => 0x00,
|
|
||||||
3 => 0x00,
|
|
||||||
4 => 0x00,
|
|
||||||
5 => 0x00,
|
|
||||||
);
|
|
||||||
$this->level->setBlock($this, BlockAPI::get($this->id, $faces[$face]), true, false, true);
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ class Level{
|
||||||
* 1 - Infinite
|
* 1 - Infinite
|
||||||
* @var integer
|
* @var integer
|
||||||
*/
|
*/
|
||||||
public $generatorType = 1;
|
public $generatorType = 0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var Config
|
* @var Config
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue