mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-14 17:59:41 +00:00
CraftingDataPacket: fix variable name collision
This commit is contained in:
parent
a3edbc31ae
commit
093a7c239e
@ -81,8 +81,8 @@ class CraftingDataPacket extends DataPacket implements ClientboundPacket{
|
||||
/** @var Item */
|
||||
$entry["input"] = [];
|
||||
for($j = 0; $j < $ingredientCount; ++$j){
|
||||
$entry["input"][] = $in = $in->getRecipeIngredient();
|
||||
$in->setCount(1); //TODO HACK: they send a useless count field which breaks the PM crafting system because it isn't always 1
|
||||
$entry["input"][] = $input = $in->getRecipeIngredient();
|
||||
$input->setCount(1); //TODO HACK: they send a useless count field which breaks the PM crafting system because it isn't always 1
|
||||
}
|
||||
$resultCount = $in->getUnsignedVarInt();
|
||||
$entry["output"] = [];
|
||||
@ -102,8 +102,8 @@ class CraftingDataPacket extends DataPacket implements ClientboundPacket{
|
||||
$count = $entry["width"] * $entry["height"];
|
||||
$entry["input"] = [];
|
||||
for($j = 0; $j < $count; ++$j){
|
||||
$entry["input"][] = $in = $in->getRecipeIngredient();
|
||||
$in->setCount(1); //TODO HACK: they send a useless count field which breaks the PM crafting system
|
||||
$entry["input"][] = $input = $in->getRecipeIngredient();
|
||||
$input->setCount(1); //TODO HACK: they send a useless count field which breaks the PM crafting system
|
||||
}
|
||||
$resultCount = $in->getUnsignedVarInt();
|
||||
$entry["output"] = [];
|
||||
|
Loading…
x
Reference in New Issue
Block a user