Skip to content

Commit 7e28f4b

Browse files
committed
Move superman allowed data key table
1 parent 7cdc767 commit 7e28f4b

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed
Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,2 @@
11
SUPERMAN_FLY_DATA_KEY = "superman:flying"
2-
SUPERMAN_TAKE_OFF_DATA_KEY = "superman:takingOff"
3-
SUPERMAN_ALLOWED_DATA_KEYS = {
4-
[SUPERMAN_FLY_DATA_KEY] = true,
5-
[SUPERMAN_TAKE_OFF_DATA_KEY] = true,
6-
}
2+
SUPERMAN_TAKE_OFF_DATA_KEY = "superman:takingOff"

[gameplay]/superman/data/ShData.lua

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
local isServer = (not triggerServerEvent)
22
local supermansData = {}
33

4+
SUPERMAN_ALLOWED_DATA_KEYS = {
5+
[SUPERMAN_FLY_DATA_KEY] = true,
6+
[SUPERMAN_TAKE_OFF_DATA_KEY] = true,
7+
}
8+
49
function getSupermanData(playerElement, dataKey)
510
local validElement = isElement(playerElement)
611

0 commit comments

Comments
 (0)