mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-25 04:44:03 +00:00
Merge commit '4c36ca58e2710c8fd03eec1f50a885fb97fd9b68'
# Conflicts: # resources/vanilla
This commit is contained in:
commit
09b24d3c32
@ -167,6 +167,9 @@ class CraftingManager{
|
||||
return $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param Item[] $outputs
|
||||
*/
|
||||
private static function hashOutputs(array $outputs) : string{
|
||||
$outputs = self::pack($outputs);
|
||||
usort($outputs, [self::class, "sort"]);
|
||||
|
@ -52,6 +52,9 @@ class ShapelessRecipe implements CraftingRecipe{
|
||||
$this->results = Utils::cloneObjectArray($results);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Item[]
|
||||
*/
|
||||
public function getResults() : array{
|
||||
return Utils::cloneObjectArray($this->results);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user