Skip to content

Commit

Permalink
fix disastrous bug
Browse files Browse the repository at this point in the history
  • Loading branch information
GlorifiedPig committed Dec 30, 2020
1 parent 31dea26 commit 836e2b4
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion lua/autorun/sh_glorifiedbanking_autoincluder.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

GlorifiedBanking = GlorifiedBanking or {
Config = {},
Version = "3.2.0"
Version = "3.2.1"
}

print( "[GlorifiedBanking] This server is running version " .. GlorifiedBanking.Version .. "." )
Expand Down
6 changes: 3 additions & 3 deletions lua/entities/glorifiedbanking_atm/cl_init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,7 @@ ENT.Screens[4].onEnterPressed = function(self, amount)
self.KeyPadBuffer = ""

net.Start("GlorifiedBanking.WithdrawalRequested")
net.WriteUInt(amount, 64)
net.WriteUInt(amount, 32)
net.WriteEntity(self)
net.SendToServer()
end
Expand All @@ -519,7 +519,7 @@ ENT.Screens[5].onEnterPressed = function(self, amount)
self.KeyPadBuffer = ""

net.Start("GlorifiedBanking.DepositRequested")
net.WriteUInt(amount, 64)
net.WriteUInt(amount, 32)
net.WriteEntity(self)
net.SendToServer()
end
Expand All @@ -544,7 +544,7 @@ ENT.Screens[6].onEnterPressed = function(self, amount)
end

net.Start("GlorifiedBanking.TransferRequested")
net.WriteUInt(amount, 64)
net.WriteUInt(amount, 32)
net.WriteEntity(self)
net.WriteEntity(self.ScreenData.selected)
net.SendToServer()
Expand Down
2 changes: 1 addition & 1 deletion lua/entities/glorifiedbanking_cardreader/cl_init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ ENT.Screens[1].onEnterPressed = function(self, amount)
self.KeyPadBuffer = ""

net.Start("GlorifiedBanking.CardReader.StartTransaction")
net.WriteUInt(amount, 64)
net.WriteUInt(amount, 32)
net.WriteEntity(self)
net.SendToServer()
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ local function ValidationChecks( ply, balance, atmEntity )
or balance == nil
or balance < 0
or not PlayerAuthChecks( ply )
or (atmEntity:GetClass() != "glorifiedbanking_atm" and atmEntity:GetClass() != "glorifiedbanking_cardreader")
or not IsValid( atmEntity )
or ( atmEntity:GetClass() != "glorifiedbanking_atm" and atmEntity:GetClass() != "glorifiedbanking_cardreader" )
or atmEntity.ForcedLoad
or not ATMDistanceChecks( ply, atmEntity ) )
end
Expand Down

0 comments on commit 836e2b4

Please sign in to comment.