mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 19:49:44 +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
|
||||
|
||||
class CocoaBlock extends FlowableBlock{
|
||||
protected static $faces = [
|
||||
2 => 0x00,
|
||||
3 => 0x02,
|
||||
4 => 0x03,
|
||||
5 => 0x01
|
||||
];
|
||||
public function __construct($meta = 0){
|
||||
parent::__construct(COCOA, $meta, "tile.cocoa.name<");
|
||||
$this->isActivable = true;
|
||||
|
|
@ -12,13 +18,7 @@ class CocoaBlock extends FlowableBlock{
|
|||
return false; //fix of placing invalid ids without array
|
||||
}
|
||||
if($target->isTransparent === false){
|
||||
$faces = array(
|
||||
2 => 0x00,
|
||||
3 => 0x00,
|
||||
4 => 0x00,
|
||||
5 => 0x00,
|
||||
);
|
||||
$this->level->setBlock($this, BlockAPI::get($this->id, $faces[$face]), true, false, true);
|
||||
$this->level->setBlock($this, BlockAPI::get($this->id, self::$faces[$face]), true, false, true);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
|
@ -63,4 +63,4 @@ class CocoaBlock extends FlowableBlock{
|
|||
}
|
||||
return $drops;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ class Level{
|
|||
* 1 - Infinite
|
||||
* @var integer
|
||||
*/
|
||||
public $generatorType = 1;
|
||||
public $generatorType = 0;
|
||||
|
||||
/**
|
||||
* @var Config
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue