Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-237059

Invalid texture deserialization

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Awaiting Response
    • None
    • 1.17.1
    • None
    • Unconfirmed
    • (Unassigned)

      This bugs affects the latest snapshot (21w37a). From decompiled MC code using Fabric mappings:

              public Transformation deserialize(JsonElement jsonElement, Type type, JsonDeserializationContext jsonDeserializationContext) throws JsonParseException {
                  JsonObject jsonObject = jsonElement.getAsJsonObject();
                  Vec3f vec3f = this.parseVector3f(jsonObject, "rotation", DEFAULT_ROTATION);
                  Vec3f vec3f2 = this.parseVector3f(jsonObject, "translation", DEFAULT_TRANSLATION);
                  vec3f2.scale(0.0625F);
                  vec3f2.clamp(-5.0F, 5.0F);
                  Vec3f vec3f3 = this.parseVector3f(jsonObject, "scale", DEFAULT_SCALE);
                  vec3f3.clamp(-4.0F, 4.0F);
                  return new Transformation(vec3f, vec3f2, vec3f3);
              }
      

      (ItemTransform$Deserializer is the original name)
      Calling scale/clamp will might modify fallback value if not present

            Unassigned Unassigned
            __xDark __xDark
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: