From bb8b3a471baaa52e1372e9454e36338de1b1e68e Mon Sep 17 00:00:00 2001 From: Unknown Date: Thu, 24 May 2018 17:05:36 -0400 Subject: [PATCH] Code cleanup --- .../assets/warpdrive/lua.ComputerCraft/common/warpdriveCommons | 2 +- .../lua.ComputerCraft/warpdriveForceFieldController/startup | 2 +- .../lua.OpenComputers/common/usr/lib/warpdriveCommons.lua | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/resources/assets/warpdrive/lua.ComputerCraft/common/warpdriveCommons b/src/main/resources/assets/warpdrive/lua.ComputerCraft/common/warpdriveCommons index dc025466..307b8a1d 100644 --- a/src/main/resources/assets/warpdrive/lua.ComputerCraft/common/warpdriveCommons +++ b/src/main/resources/assets/warpdrive/lua.ComputerCraft/common/warpdriveCommons @@ -985,7 +985,7 @@ local function data_register(name, callbackRead, callbackSave, callbackName) callbackSave = function() end end - -- name callback is nill when not defined + -- name callback is nil when not defined data_handlers[name] = { read = callbackRead, save = callbackSave, name = callbackName } end diff --git a/src/main/resources/assets/warpdrive/lua.ComputerCraft/warpdriveForceFieldController/startup b/src/main/resources/assets/warpdrive/lua.ComputerCraft/warpdriveForceFieldController/startup index 004a4a92..9dfd71b2 100644 --- a/src/main/resources/assets/warpdrive/lua.ComputerCraft/warpdriveForceFieldController/startup +++ b/src/main/resources/assets/warpdrive/lua.ComputerCraft/warpdriveForceFieldController/startup @@ -179,7 +179,7 @@ function ffield_projector_key(character, keycode) return true elseif character == 'e' or character == 'E' then local projector = ffield_projector_getSelected() - if projector ~= nil and projector.device ~= nill then + if projector ~= nil and projector.device ~= nil then ffield_enable(projector) end return true diff --git a/src/main/resources/assets/warpdrive/lua.OpenComputers/common/usr/lib/warpdriveCommons.lua b/src/main/resources/assets/warpdrive/lua.OpenComputers/common/usr/lib/warpdriveCommons.lua index 23e9335e..126b3ce0 100644 --- a/src/main/resources/assets/warpdrive/lua.OpenComputers/common/usr/lib/warpdriveCommons.lua +++ b/src/main/resources/assets/warpdrive/lua.OpenComputers/common/usr/lib/warpdriveCommons.lua @@ -962,7 +962,7 @@ local function data_register(name, callbackRead, callbackSave, callbackName) callbackSave = function() end end - -- name callback is nill when not defined + -- name callback is nil when not defined data_handlers[name] = { read = callbackRead, save = callbackSave, name = callbackName } end