mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 19:49:44 +00:00
i hate php
This commit is contained in:
parent
629db09843
commit
19332d0ec5
3 changed files with 33 additions and 11 deletions
|
|
@ -60,6 +60,15 @@ class Level{
|
|||
$this->__destruct();
|
||||
}
|
||||
|
||||
public function isTopSolidBlocking($x, $y, $z){
|
||||
$idmeta = $this->level->getBlock($x, $y, $z);
|
||||
$id = $idmeta[0];
|
||||
$meta = $idmeta[1];
|
||||
if($id == 0) return false;
|
||||
if(StaticBlock::getIsTransparent($id)) return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param AxisAlignedBB $aABB
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue