mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 20:19:44 +00:00
95 fix
This commit is contained in:
parent
0275420a12
commit
b328736591
2 changed files with 5 additions and 3 deletions
|
|
@ -172,7 +172,9 @@ abstract class Block extends Position{
|
|||
final public function getID(){
|
||||
return $this->id;
|
||||
}
|
||||
|
||||
public function setMetadata($i){
|
||||
$this->meta = $i;
|
||||
}
|
||||
final public function getMetadata(){
|
||||
return $this->meta & 0x0F;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -53,9 +53,9 @@ class Explosion{
|
|||
for($blastForce = $this->size * (mt_rand(700, 1300) / 1000); $blastForce > 0; $blastForce -= $this->stepLen * 0.75){
|
||||
$vBlock = $pointer->floor();
|
||||
$blockID = $this->level->level->getBlockID($vBlock->x, $vBlock->y, $vBlock->z);
|
||||
|
||||
$blockMeta = $this->level->level->getBlockDamage($vBlock->x, $vBlock->y, $vBlock->z);
|
||||
if($blockID > 0){
|
||||
$block = BlockAPI::get($blockID, 0);
|
||||
$block = BlockAPI::get($blockID, $blockMeta);
|
||||
$block->x = $vBlock->x;
|
||||
$block->y = $vBlock->y;
|
||||
$block->z = $vBlock->z;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue