Skip to content
This repository has been archived by the owner on Dec 26, 2021. It is now read-only.

Commit

Permalink
Fixed backpack bug detailed in Issue #168
Browse files Browse the repository at this point in the history
  • Loading branch information
mtadayz committed Mar 31, 2018
1 parent 6c15361 commit 151d7cf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion DayZ/handlers/players/server/backpack_player.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
#-----------------------------------------------------------------------------#
]]

function addBackpackToPlayer(slots)
function addBackpackToPlayer(player,slots)
local source = player
local x,y,z = getElementPosition(source)
local rx,ry,rz = getElementRotation(source)
if slots == 8 then
Expand Down
2 changes: 1 addition & 1 deletion DayZ/init/players/login_init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ function playerRegister(username, pass, player)
--dbExec(skillsDB, "INSERT INTO skills (playerName,skillsData) VALUES(?,?)",username,toJSON(playerSkillsTable[player]))

determineBloodType(player)
addBackpackToPlayer(playerStatusTable[player]["MAX_Slots"])
addBackpackToPlayer(player,playerStatusTable[player]["MAX_Slots"])

if not gameplayVariables["newclothingsystem"] then
playerStatusTable[player]["skin"] = 73
Expand Down
2 changes: 1 addition & 1 deletion DayZ/init/players/spawn_init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ function spawnDayZPlayer(player)

determineBloodType(player)
setPlayerFracturedBones(player,false)
addBackpackToPlayer(playerStatusTable[player]["MAX_Slots"])
addBackpackToPlayer(player,playerStatusTable[player]["MAX_Slots"])

if not gameplayVariables["newclothingsystem"] then
playerStatusTable[player]["skin"] = 73
Expand Down

0 comments on commit 151d7cf

Please sign in to comment.