diff --git a/hank/Story.hx b/hank/Story.hx index 39d00db..c09606d 100644 --- a/hank/Story.hx +++ b/hank/Story.hx @@ -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);