diff --git a/editor/src/main/kotlin/com/bartlomiejpluta/base/editor/code/build/generator/MapObjectsCodeGenerator.kt b/editor/src/main/kotlin/com/bartlomiejpluta/base/editor/code/build/generator/MapObjectsCodeGenerator.kt index ac2ae0ec..9aa14dd2 100644 --- a/editor/src/main/kotlin/com/bartlomiejpluta/base/editor/code/build/generator/MapObjectsCodeGenerator.kt +++ b/editor/src/main/kotlin/com/bartlomiejpluta/base/editor/code/build/generator/MapObjectsCodeGenerator.kt @@ -81,7 +81,7 @@ class MapObjectsCodeGenerator : CodeGenerator { .addParameter(TypeName.INT, "x", Modifier.FINAL) .addParameter(TypeName.INT, "y", Modifier.FINAL) .addParameter(MAP_PIN_TYPE, "here", Modifier.FINAL) - .addCode(it.code) + .addCode(it.code.replace("\$", "\$\$")) .build() .let(generatedClass::addMethod) } diff --git a/editor/src/main/kotlin/com/bartlomiejpluta/base/editor/map/canvas/ObjectPaintingTrace.kt b/editor/src/main/kotlin/com/bartlomiejpluta/base/editor/map/canvas/ObjectPaintingTrace.kt index b9a67032..2fe553b8 100644 --- a/editor/src/main/kotlin/com/bartlomiejpluta/base/editor/map/canvas/ObjectPaintingTrace.kt +++ b/editor/src/main/kotlin/com/bartlomiejpluta/base/editor/map/canvas/ObjectPaintingTrace.kt @@ -88,7 +88,7 @@ class ObjectPaintingTrace( * layer's index and x,y coordinates of the current tile * x: int - the x coordinate of the current tile * y: int - the y coordinate of the current tile - * layer: ObjectLayer - current object layer's index + * layer: ObjectLayer - current object layer * map: GameMap - current map * handler: ${className(map.handler)} - current map handler * runner: ${className(projectContext.project?.runner)} - the game runner of the project