From e1af5371b675e371902e7528b5626dd470a53f3e Mon Sep 17 00:00:00 2001 From: Mayck <49450260+mayckzj@users.noreply.github.com> Date: Mon, 27 Nov 2023 00:43:55 -0300 Subject: [PATCH 1/2] Update luateleport.cpp to use/activate the method: // teleport:getDestination() // teleport:setDestination(position) --- src/luateleport.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/luateleport.cpp b/src/luateleport.cpp index 28983c3..79802b9 100644 --- a/src/luateleport.cpp +++ b/src/luateleport.cpp @@ -57,4 +57,6 @@ void LuaScriptInterface::registerTeleport() // Teleport registerClass("Teleport", "Item", luaTeleportCreate); registerMetaMethod("Teleport", "__eq", LuaScriptInterface::luaUserdataCompare); + registerMethod("Teleport", "getDestination", luaTeleportGetDestination); + registerMethod("Teleport", "setDestination", luaTeleportSetDestination); } From 015253bba972050365bfc991add33a1aab7e136f Mon Sep 17 00:00:00 2001 From: Sarah Wesker Date: Mon, 27 Nov 2023 16:55:38 -0600 Subject: [PATCH 2/2] Update luateleport.cpp --- src/luateleport.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/luateleport.cpp b/src/luateleport.cpp index 79802b9..dc22454 100644 --- a/src/luateleport.cpp +++ b/src/luateleport.cpp @@ -57,6 +57,7 @@ void LuaScriptInterface::registerTeleport() // Teleport registerClass("Teleport", "Item", luaTeleportCreate); registerMetaMethod("Teleport", "__eq", LuaScriptInterface::luaUserdataCompare); + registerMethod("Teleport", "getDestination", luaTeleportGetDestination); registerMethod("Teleport", "setDestination", luaTeleportSetDestination); }