mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 03:59:43 +00:00
bonemeal on sugarcane tweaks, using block send queue to send UpdateBlockPackets
This commit is contained in:
parent
7ecfcacec6
commit
229a563ff5
8 changed files with 84 additions and 70 deletions
|
|
@ -30,10 +30,6 @@ class DirtBlock extends SolidBlock{
|
|||
}*/
|
||||
}
|
||||
|
||||
public function getBlockID($x, $y, $z){
|
||||
return $this->level->getBlock(new Vector3($x, $y, $z))->getID();
|
||||
}
|
||||
|
||||
public static function getGrassInRadius(Level $level, $x, $y, $z){ //umwut (although kinda faster than for loop =D)
|
||||
if($level->level->getBlockID($x+1, $y, $z+1) == 2) return true;
|
||||
if($level->level->getBlockID($x+1, $y, $z) == 2) return true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue