mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2025-07-05 07:24:39 +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:
parent
d1cbc6f783
commit
1743e1a996
3 changed files with 7 additions and 2 deletions
|
@ -8,11 +8,14 @@ dofile("scripts/compat/no-deprecated.lua")
|
||||||
incrFlag = nil
|
incrFlag = nil
|
||||||
decrFlag = nil
|
decrFlag = nil
|
||||||
entity_sound = 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
|
quit = nil -- mods should not do this ever
|
||||||
doModSelect = nil
|
doModSelect = nil
|
||||||
doLoadMenu = nil
|
doLoadMenu = nil
|
||||||
entity_incrTargetLeaches = nil -- use avatar_incrLeaches() instead
|
entity_incrTargetLeaches = nil -- use avatar_incrLeaches() instead
|
||||||
entity_decrTargetLeaches = nil -- use avatar_decrLeaches() instead
|
entity_decrTargetLeaches = nil -- use avatar_decrLeaches() instead
|
||||||
entity_soundFreq = nil
|
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
|
||||||
|
|
|
@ -31,6 +31,7 @@ local luafuncs51 =
|
||||||
type = true,
|
type = true,
|
||||||
unpack = true,
|
unpack = true,
|
||||||
xpcall = true,
|
xpcall = true,
|
||||||
|
newproxy = true,
|
||||||
}
|
}
|
||||||
|
|
||||||
for k, f in pairs(_G) do
|
for k, f in pairs(_G) do
|
||||||
|
|
|
@ -7,6 +7,7 @@ entity_isSlowingToStopPath = nil
|
||||||
entity_isNearGround = nil
|
entity_isNearGround = nil
|
||||||
entity_resumePath = nil
|
entity_resumePath = nil
|
||||||
entity_move = nil
|
entity_move = nil
|
||||||
|
entity_toggleBone = nil
|
||||||
createSpore = nil
|
createSpore = nil
|
||||||
spawnAroundEntity = nil
|
spawnAroundEntity = nil
|
||||||
node_isEntityPast = nil
|
node_isEntityPast = nil
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue