mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 20:19:44 +00:00
added some vanilla block props, some changes for block placement
This commit is contained in:
parent
cf4dc73a6c
commit
8f9a9debc5
9 changed files with 178 additions and 63 deletions
|
|
@ -518,6 +518,16 @@ class Level{
|
|||
}
|
||||
return $ret;
|
||||
}
|
||||
|
||||
public function isSolidBlockingTile($x, $y, $z){
|
||||
$id = $this->level->getBlockID($x, $y, $z);
|
||||
if($id != 0 && StaticBlock::getMaterial($id)->isSolidBlocking()){
|
||||
return StaticBlock::getIsCubeShaped($id);
|
||||
}else{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
public function fastSetBlockUpdateMeta($x, $y, $z, $meta, $updateBlock = false){
|
||||
$this->level->setBlockDamage($x, $y, $z, $meta);
|
||||
$id = $this->level->getBlockID($x, $y, $z);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue