Further cleanup to general AABB handling

This commit is contained in:
Dylan K. Taylor
2018-11-24 19:17:03 +00:00
parent d5ae4ad141
commit b2201c8c59
25 changed files with 36 additions and 58 deletions

View File

@ -27,6 +27,7 @@ use pocketmine\inventory\EnchantInventory;
use pocketmine\item\Item;
use pocketmine\item\TieredTool;
use pocketmine\math\AxisAlignedBB;
use pocketmine\math\Facing;
use pocketmine\math\Vector3;
use pocketmine\Player;
use pocketmine\tile\EnchantTable as TileEnchantTable;
@ -70,7 +71,7 @@ class EnchantingTable extends Transparent{
}
protected function recalculateBoundingBox() : ?AxisAlignedBB{
return new AxisAlignedBB(0, 0, 0, 1, 0.75, 1);
return AxisAlignedBB::one()->trim(Facing::UP, 0.25);
}
public function onActivate(Item $item, Player $player = null) : bool{