Skip to content

Commit

Permalink
Fix method not found error
Browse files Browse the repository at this point in the history
  • Loading branch information
Citrinate committed Aug 8, 2024
1 parent 5c25cb0 commit ec04499
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CS2Interface/Data/InventoryItem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ private bool ParseAttributes(List<CSOEconItemAttribute>? attributes) {

case "float":
case null when attribute_def["stored_as_integer"].Value == "0":
Attributes.Add(attribute_name, new Attribute<float>(attribute_name, BitConverter.ToSingle(attribute.value_bytes.ToArray(), 0)));
Attributes.Add(attribute_name, new Attribute<float>(attribute_name, BitConverter.ToSingle(attribute.value_bytes.ToArray())));
break;

case "string":
Expand Down

0 comments on commit ec04499

Please sign in to comment.