Skip to content

Commit

Permalink
requested changes
Browse files Browse the repository at this point in the history
Co-authored-by: Adam Johnson <[email protected]>
  • Loading branch information
Hazado and Hoikas committed Aug 17, 2023
1 parent 2502a04 commit 5ce9f10
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Scripts/Python/grsnNexusBookMachine.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@
kElevMoving = 1
kElevUp = 2
elevatorStatus = kElevDown
serverInitDone = False

class grsnNexusBookMachine(ptResponder):

Expand All @@ -90,6 +89,7 @@ def __init__(self):
PtDebugPrint("book machine init")
self.id = 53624
self.version = 2
self.serverInitDone = False

def IAmMaster(self):
return (self.sceneobject.isLocallyOwned())
Expand All @@ -106,8 +106,7 @@ def GetPlayersInChatDistance(self, minPlayers=8):
return plyrList

def OnServerInitComplete(self):
global serverInitDone
serverInitDone = True
self.serverInitDone = True
bookPillarSpinning.run(self.key,netPropagate=False)
if not PtIsSolo():
return
Expand Down Expand Up @@ -154,7 +153,7 @@ def OnNotify(self,state,id,events):
global elevatorStatus

#PtDebugPrint("id ",id)
if not serverInitDone:
if not self.serverInitDone:
return

avatar=PtFindAvatar(events)
Expand Down

0 comments on commit 5ce9f10

Please sign in to comment.