Skip to content

Commit a0f086d

Browse files
committed
Put integers from Godot as Long in Bundles
1 parent 1339df4 commit a0f086d

File tree

1 file changed

+2
-1
lines changed
  • src/main/java/org/godotengine/androidplugin/firebase

1 file changed

+2
-1
lines changed

src/main/java/org/godotengine/androidplugin/firebase/Utils.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,8 @@ public static void putGodotValue(Bundle bundle, String key, Object value) {
152152
if (value instanceof Boolean) {
153153
bundle.putBoolean(key, (Boolean) value);
154154
} else if (value instanceof Integer) {
155-
bundle.putLong(key, Long.valueOf((Integer) value));
155+
// Storing as long since that's often expected
156+
bundle.putLong(key, (Integer) value);
156157
} else if (value instanceof Double) {
157158
bundle.putDouble(key, (Double) value);
158159
} else if (value instanceof String) {

0 commit comments

Comments
 (0)