Crafting recipes, and packet fix

This commit is contained in:
Intyre
2015-09-29 00:45:57 +02:00
parent 72e9765ec8
commit 85dc136631
2 changed files with 244 additions and 49 deletions

View File

@ -76,8 +76,8 @@ class CraftingDataPacket extends DataPacket{
$stream->putInt($recipe->getWidth());
$stream->putInt($recipe->getHeight());
for($z = 0; $z < $recipe->getWidth(); ++$z){
for($x = 0; $x < $recipe->getHeight(); ++$x){
for($z = 0; $z < $recipe->getHeight(); ++$z){
for($x = 0; $x < $recipe->getWidth(); ++$x){
$stream->putSlot($recipe->getIngredient($x, $z));
}
}