mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 19:49:44 +00:00
removed some useless stuff from explosion, onPlace should be called every ti
This commit is contained in:
parent
9c21a984cd
commit
5d5099c06f
3 changed files with 17 additions and 15 deletions
|
|
@ -369,7 +369,14 @@ class PMFLevel extends PMF{
|
|||
$aX = $x & 0xf;
|
||||
$aZ = $z & 0xf;
|
||||
$aY = $y & 0xf;
|
||||
$this->chunks[$index][$Y][(int) ($aY + ($aX << 5) + ($aZ << 9))] = chr($block);
|
||||
$bind = (int) ($aY + ($aX << 5) + ($aZ << 9));
|
||||
if($this->chunks[$index][$Y][$bind] == chr($block)){
|
||||
return false; //no changes done
|
||||
}else{
|
||||
$this->chunks[$index][$Y][$bind] = chr($block);
|
||||
if($block > 0) StaticBlock::getBlock($block)::onPlace($this->level, $x, $y, $z);
|
||||
}
|
||||
|
||||
if(!isset($this->chunkChange[$index][$Y])){
|
||||
$this->chunkChange[$index][$Y] = 1;
|
||||
}else{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue