diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 00000000..e41741f3 --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1 @@ +* @pmmp/server-developers diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 808e5b86..b699334d 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -10,3 +10,6 @@ updates: directory: "/" schedule: interval: monthly + groups: + github-actions: + patterns: ["*"] diff --git a/src/types/inventory/stackrequest/LoomStackRequestAction.php b/src/types/inventory/stackrequest/LoomStackRequestAction.php index 86935511..dbf6f3f3 100644 --- a/src/types/inventory/stackrequest/LoomStackRequestAction.php +++ b/src/types/inventory/stackrequest/LoomStackRequestAction.php @@ -26,16 +26,22 @@ final class LoomStackRequestAction extends ItemStackRequestAction{ public const ID = ItemStackRequestActionType::CRAFTING_LOOM; public function __construct( - private string $patternId + private string $patternId, + private int $repetitions = 1 ){} public function getPatternId() : string{ return $this->patternId; } + public function getRepetitions() : int{ return $this->repetitions; } + public static function read(PacketSerializer $in) : self{ - return new self($in->getString()); + $patternId = $in->getString(); + $repetitions = $in->getByte(); + return new self($patternId, $repetitions); } public function write(PacketSerializer $out) : void{ $out->putString($this->patternId); + $out->putByte($this->repetitions); } } diff --git a/src/types/skin/SkinData.php b/src/types/skin/SkinData.php index e22add3f..da2d59c0 100644 --- a/src/types/skin/SkinData.php +++ b/src/types/skin/SkinData.php @@ -36,7 +36,7 @@ public function __construct( private string $resourcePatch, private SkinImage $skinImage, private array $animations = [], - SkinImage $capeImage = null, + ?SkinImage $capeImage = null, private string $geometryData = "", private string $geometryDataEngineVersion = ProtocolInfo::MINECRAFT_VERSION_NETWORK, private string $animationData = "",