mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 20:19:44 +00:00
better break time checks, added block materials
This commit is contained in:
parent
71da620aa3
commit
625e9ca71f
143 changed files with 496 additions and 54 deletions
|
|
@ -731,6 +731,17 @@ class Player{
|
|||
|
||||
public $currentChunk = false;
|
||||
|
||||
public function getDestroySpeed($id, $meta){
|
||||
return $this->getHeldItem()->getDestroySpeed($id, $meta);
|
||||
}
|
||||
|
||||
public function canDestroy($id, $meta){
|
||||
$mat = StaticBlock::getMaterial($id);
|
||||
if($mat->alwaysDestroyable) return true;
|
||||
|
||||
return $this->getHeldItem()->canDestroySpecial($id, $meta);
|
||||
}
|
||||
|
||||
public function onChunkReceived($blockX, $blockZ){
|
||||
$minX = $blockX;
|
||||
$maxX = $blockX + 15;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue