Skip to content

Commit 91e9bb2

Browse files
committed
Merge remote-tracking branch 'upstream/master'
2 parents fe408f0 + 0c1c13e commit 91e9bb2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/PlayerUpdateEntityOverridesPacket.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,12 +82,12 @@ protected function encodePayload(PacketSerializer $out) : void{
8282
$out->putByte($this->updateType->value);
8383
if($this->updateType === OverrideUpdateType::SET_INT_OVERRIDE){
8484
if($this->intOverrideValue === null){ // this should never be the case
85-
throw new \LogicException("PlayerUpdateEntityOverridesPacket with type SET_INT_OVERRIDE require an intOverrideValue to be provided");
85+
throw new \LogicException("PlayerUpdateEntityOverridesPacket with type SET_INT_OVERRIDE requires intOverrideValue to be provided");
8686
}
8787
$out->putLInt($this->intOverrideValue);
8888
}elseif($this->updateType === OverrideUpdateType::SET_FLOAT_OVERRIDE){
8989
if($this->floatOverrideValue === null){ // this should never be the case
90-
throw new \LogicException("PlayerUpdateEntityOverridesPacket with type SET_INT_OVERRIDE require an intOverrideValue to be provided");
90+
throw new \LogicException("PlayerUpdateEntityOverridesPacket with type SET_FLOAT_OVERRIDE requires floatOverrideValue to be provided");
9191
}
9292
$out->putLFloat($this->floatOverrideValue);
9393
}

0 commit comments

Comments
 (0)