mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-30 23:29:54 +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\inventory\EnchantInventory;
|
||||||
use pocketmine\item\Item;
|
use pocketmine\item\Item;
|
||||||
use pocketmine\item\TieredTool;
|
use pocketmine\item\TieredTool;
|
||||||
|
use pocketmine\math\AxisAlignedBB;
|
||||||
use pocketmine\math\Vector3;
|
use pocketmine\math\Vector3;
|
||||||
use pocketmine\Player;
|
use pocketmine\Player;
|
||||||
use pocketmine\tile\EnchantTable as TileEnchantTable;
|
use pocketmine\tile\EnchantTable as TileEnchantTable;
|
||||||
@ -68,6 +69,10 @@ class EnchantingTable extends Transparent{
|
|||||||
return TieredTool::TIER_WOODEN;
|
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{
|
public function onActivate(Item $item, Player $player = null) : bool{
|
||||||
if($player instanceof Player){
|
if($player instanceof Player){
|
||||||
//TODO lock
|
//TODO lock
|
||||||
|
Loading…
x
Reference in New Issue
Block a user