This commit is contained in:
@@ -650,6 +650,8 @@ class Story {
|
||||
if (value == null) {
|
||||
throw 'Trying to format null for insertion!';
|
||||
}
|
||||
|
||||
#if !gdscript
|
||||
// Static extension syntax wasn't working here, probably because of type parameters
|
||||
var c = Type.getClass(value);
|
||||
var e = Type.getEnum(value);
|
||||
@@ -665,6 +667,7 @@ class Story {
|
||||
if (typeName != null && insertionHooks.exists(typeName)) {
|
||||
return insertionHooks[typeName](value);
|
||||
}
|
||||
#end
|
||||
|
||||
// If no special hook is defined for the value to insert,
|
||||
return Std.string(value);
|
||||
|
||||
Reference in New Issue
Block a user