From 62c0dc058042f755f4b1ea3ea18a74d7d2860818 Mon Sep 17 00:00:00 2001 From: Cintique Date: Wed, 1 Jun 2022 19:46:40 +1000 Subject: [PATCH] Better doc --- .../SharedSource/LuaCs/Lua/LuaClasses/LuaUserData.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Barotrauma/BarotraumaShared/SharedSource/LuaCs/Lua/LuaClasses/LuaUserData.cs b/Barotrauma/BarotraumaShared/SharedSource/LuaCs/Lua/LuaClasses/LuaUserData.cs index 960003023..615fb6d58 100644 --- a/Barotrauma/BarotraumaShared/SharedSource/LuaCs/Lua/LuaClasses/LuaUserData.cs +++ b/Barotrauma/BarotraumaShared/SharedSource/LuaCs/Lua/LuaClasses/LuaUserData.cs @@ -225,7 +225,7 @@ namespace Barotrauma } /// - /// Converts a Lua value to a desired CLR type and wraps it in a userdata to avoid automatic conversions. + /// Converts a Lua value to a CLR object of a desired type and wraps it in a userdata. /// Example: a Lua script needs to pass a List`1 to a CLR method expecting System.Object, MoonSharp gets /// in the way by converting the List`1 to a MoonSharp.Interpreter.Table and breaking everything. /// Wrapping the value in a userdata preserves the original type during conversions.