From e1b9f74e526a3bccc5d1430c3d7442bd68bc8f83 Mon Sep 17 00:00:00 2001 From: Dutchman101 Date: Tue, 11 Jun 2024 04:16:07 +0200 Subject: [PATCH] Fix lint warnings --- [editor]/move_cursor/controlinterface.lua | 2 +- [editor]/move_cursor/move_cursor.lua | 2 -- [editor]/move_freecam/move_freecam.lua | 3 --- [editor]/move_keyboard/move_keyboard.lua | 2 -- 4 files changed, 1 insertion(+), 8 deletions(-) diff --git a/[editor]/move_cursor/controlinterface.lua b/[editor]/move_cursor/controlinterface.lua index d5d0509d9..2f91eb8a9 100644 --- a/[editor]/move_cursor/controlinterface.lua +++ b/[editor]/move_cursor/controlinterface.lua @@ -25,7 +25,7 @@ function sticknumbertoMult(number,mult,mode) end _setElementPosition = setElementPosition -function setElementPosition(element,x,y,z,warp) +function setElementPosition(element,x,y,z,warp) if not (element and isElement(element)) then return false end local exactsnap = exports["editor_gui"]:sx_getOptionData("enablePrecisionSnap") local snaplevel = tonumber(exports["editor_gui"]:sx_getOptionData("precisionLevel")) diff --git a/[editor]/move_cursor/move_cursor.lua b/[editor]/move_cursor/move_cursor.lua index 24d4d607a..c743a173a 100644 --- a/[editor]/move_cursor/move_cursor.lua +++ b/[editor]/move_cursor/move_cursor.lua @@ -274,8 +274,6 @@ function detachElement() rotX, rotY, rotZ = getElementRotation(selectedElement, "ZYX") triggerServerEvent("syncProperty", localPlayer, "rotation", {rotX, rotY, rotZ}, exports.edf:edfGetAncestor(selectedElement)) end - else - -- outputDebugString("Denied syncing for local element.") end selectedElement = nil diff --git a/[editor]/move_freecam/move_freecam.lua b/[editor]/move_freecam/move_freecam.lua index ffd67ef4b..1de440de9 100644 --- a/[editor]/move_freecam/move_freecam.lua +++ b/[editor]/move_freecam/move_freecam.lua @@ -246,9 +246,6 @@ function detachElement() if hasRotation[getElementType(selectedElement)] then triggerServerEvent("syncProperty", localPlayer, "rotation", {rotX, rotY, rotZ}, exports.edf:edfGetAncestor(selectedElement)) end - - else - -- outputDebugString("Denied syncing for local element.") end selectedElement = nil diff --git a/[editor]/move_keyboard/move_keyboard.lua b/[editor]/move_keyboard/move_keyboard.lua index 84a61d851..416c85c41 100644 --- a/[editor]/move_keyboard/move_keyboard.lua +++ b/[editor]/move_keyboard/move_keyboard.lua @@ -429,8 +429,6 @@ function detachElement() rotX, rotY, rotZ = getElementRotation(selectedElement, "ZYX") triggerServerEvent("syncProperty", localPlayer, "rotation", {rotX, rotY, rotZ}, exports.edf:edfGetAncestor(selectedElement)) end - else - -- outputDebugString("Denied syncing for local element.") end selectedElement = nil posX, posY, posZ = nil, nil, nil