mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-13 01:09:44 +00:00
Vine: fix bug when reading state multiple times
This commit is contained in:
parent
c99846e069
commit
41d754de5a
@ -68,6 +68,8 @@ class Vine extends Flowable{
|
|||||||
private function setFaceFromMeta(int $meta, int $flag, int $face) : void{
|
private function setFaceFromMeta(int $meta, int $flag, int $face) : void{
|
||||||
if(($meta & $flag) !== 0){
|
if(($meta & $flag) !== 0){
|
||||||
$this->faces[$face] = true;
|
$this->faces[$face] = true;
|
||||||
|
}else{
|
||||||
|
unset($this->faces[$face]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user