mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-15 18:29:46 +00:00
EnchantingTable: fix BB
This commit is contained in:
parent
e6a1398992
commit
8a8f1d84ff
@ -26,6 +26,7 @@ namespace pocketmine\block;
|
||||
use pocketmine\inventory\EnchantInventory;
|
||||
use pocketmine\item\Item;
|
||||
use pocketmine\item\TieredTool;
|
||||
use pocketmine\math\AxisAlignedBB;
|
||||
use pocketmine\math\Vector3;
|
||||
use pocketmine\Player;
|
||||
use pocketmine\tile\EnchantTable as TileEnchantTable;
|
||||
@ -68,6 +69,10 @@ class EnchantingTable extends Transparent{
|
||||
return TieredTool::TIER_WOODEN;
|
||||
}
|
||||
|
||||
protected function recalculateBoundingBox() : ?AxisAlignedBB{
|
||||
return new AxisAlignedBB(0, 0, 0, 1, 0.75, 1);
|
||||
}
|
||||
|
||||
public function onActivate(Item $item, Player $player = null) : bool{
|
||||
if($player instanceof Player){
|
||||
//TODO lock
|
||||
|
Loading…
x
Reference in New Issue
Block a user