Skip to content

Commit 27db50a

Browse files
committed
Merge branch 'jpn/fix-sdk-metadata' into 'master'
[FIX][SDK] fix metadata api See merge request codingame/game-engine!323
2 parents 0fbfd73 + 6442c83 commit 27db50a

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

engine/core/src/main/java/com/codingame/gameengine/core/GameManager.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -375,8 +375,8 @@ boolean getOuputsRead() {
375375
* @param value
376376
* the property's value
377377
*/
378-
public final void putMetadata(String key, String value) {
379-
metadata.put(key, value);
378+
public final void putMetadata(String key, double value) {
379+
metadata.put(key, String.valueOf(value));
380380
}
381381

382382
/**

playground/misc/misc-3-release-notes.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22

33
The CodinGame SDK is regularly updated and improved. This document lets you know what changed in the latest releases.
44

5+
## Next version
6+
7+
### 🐞 Bug fix
8+
9+
- Removed "missing welcome_en.html file" warning.
10+
- Fixed the `putMetadata` function's signature
11+
512
## 4.4.4
613

714
### 🐞 Bug fix

0 commit comments

Comments
 (0)