1
0
Fork 0
mirror of https://github.com/AquariaOSE/Aquaria.git synced 2024-11-25 09:44:02 +00:00

script compat: entity_toggleBone() and Lua platform detection is deprecated; forgot newproxy() is a valid Lua 5.1 function

This commit is contained in:
fgenesis 2023-05-31 18:10:55 +02:00
parent d1cbc6f783
commit 1743e1a996
3 changed files with 7 additions and 2 deletions

View file

@ -8,11 +8,14 @@ dofile("scripts/compat/no-deprecated.lua")
incrFlag = nil
decrFlag = nil
entity_sound = nil
entity_toggleBone = nil
isPlat = nil -- should not matter on the Lua side what the platform is
quit = nil -- mods should not do this ever
doModSelect = nil
doLoadMenu = nil
entity_incrTargetLeaches = nil -- use avatar_incrLeaches() instead
entity_decrTargetLeaches = nil -- use avatar_decrLeaches() instead
entity_soundFreq = nil
isPlat = nil -- should not matter on the Lua side what the platform is
PLAT_WIN = nil
PLAT_MAC = nil
PLAT_LNX = nil

View file

@ -31,6 +31,7 @@ local luafuncs51 =
type = true,
unpack = true,
xpcall = true,
newproxy = true,
}
for k, f in pairs(_G) do

View file

@ -7,6 +7,7 @@ entity_isSlowingToStopPath = nil
entity_isNearGround = nil
entity_resumePath = nil
entity_move = nil
entity_toggleBone = nil
createSpore = nil
spawnAroundEntity = nil
node_isEntityPast = nil