Fixed crafting

This commit is contained in:
Stephen
2019-11-06 20:42:53 -05:00
parent 07f19dd4a1
commit 3511ac010d
7 changed files with 234 additions and 160 deletions

View File

@ -49,7 +49,7 @@ class CraftingTable extends Solid{
public function onActivate(Item $item, Player $player = null) : bool{
if($player instanceof Player){
$player->setCraftingGrid(new CraftingGrid($player, CraftingGrid::SIZE_BIG));
$player->setCraftingGrid(new CraftingGrid($player->getPlayerUIInventory(), CraftingGrid::SIZE_BIG));
}
return true;