Skip to content

Commit 2f9906f

Browse files
committed
Fix minor details for the new class template
1 parent 1efa109 commit 2f9906f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

lua_script_language.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,11 +141,11 @@ Ref<Script> LuaScriptLanguage::get_template(const String &p_class_name, const St
141141
String _template = String() +
142142

143143
"\n" +
144-
"local class = require 'lua.class' -- Import the system class library\n" +
145-
"godot.%BASE% = require 'godot.%BASE%' -- Make sure to import the base class\n" +
144+
"local class = require 'lua.class' -- Import the system class library\n" +
145+
"local %BASE% = require 'godot.%BASE%' -- Make sure to import the base class\n" +
146146
"\n" +
147147
"\n" +
148-
"local %CLASS% = class.extends(godot.%BASE%) -- Create the user subclass\n" +
148+
"local %CLASS% = class.extends(%BASE%) -- Create the user subclass\n" +
149149
"\n" +
150150
"function %CLASS%:_ready()\n" +
151151
"\n" +

0 commit comments

Comments
 (0)