Skip to content

Commit 4a839eb

Browse files
committed
readme: update it to match the wiki
1 parent 763afc7 commit 4a839eb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2733,6 +2733,7 @@ physenv.EnablePhysHook(true)
27332733
local mainEnv = physenv.GetActiveEnvironmentByIndex(0)
27342734
hook.Add("HolyLib:OnPhysFrame", "Example", function(deltaTime)
27352735
mainEnv:Simulate(deltaTime, true) -- the second argument will only cause the entities to update.
2736+
return true -- We stop the engine from running the simulation itself again as else it will result in issue like "Reset physics clock" being spammed
27362737
end)
27372738
```
27382739

@@ -3584,7 +3585,8 @@ playerQueue = playerQueue or {
35843585
hook.Add("HolyLib:OnSetSignonState", "Example", function(cl, state, c)
35853586
print(cl, state, c)
35863587

3587-
local fullServer = #player.GetAll() >= 128 -- Can't exceed 128 players.
3588+
local maxSlots = 128 -- Can't exceed 128 players. If you want to only have 100 players, lower it but NEVER go above 128
3589+
local fullServer = player.GetCount() >= maxSlots
35883590
if fullServer and state == SIGNONSTATE_PRESPAWN then -- REQUIRED to be SIGNONSTATE_PRESPAWN
35893591
if not playerQueue[cl] then
35903592
playerQueue[cl] = true

0 commit comments

Comments
 (0)