We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b32c375 commit a093951Copy full SHA for a093951
src/Tag/DoubleTag.php
@@ -20,7 +20,7 @@ class DoubleTag extends FloatValueTag
20
*/
21
public function generatePayload(NbtSerializer $serializer): string
22
{
23
- if(!$this->rawValueValid($serializer->getFormat())) {
+ if($this->rawValueValid($serializer->getFormat())) {
24
return $this->rawValue;
25
}
26
return $serializer->encodeDouble($this->value);
src/Tag/FloatTag.php
@@ -18,7 +18,7 @@ class FloatTag extends FloatValueTag
18
19
return $serializer->encodeFloat($this->value);
0 commit comments