Skip to content

Commit

Permalink
Merge pull request #1469 from Hazado/FixPrematureEntryTriggerBug
Browse files Browse the repository at this point in the history
Hack to prevent issue #1208 in Gahreesen age
  • Loading branch information
Hoikas authored Sep 26, 2024
2 parents d7363e6 + 5ce9f10 commit 8a0c4b5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Scripts/Python/grsnNexusBookMachine.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,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 @@ -105,6 +106,7 @@ def GetPlayersInChatDistance(self, minPlayers=8):
return plyrList

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

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

avatar=PtFindAvatar(events)
local = PtGetLocalAvatar()
Expand Down

0 comments on commit 8a0c4b5

Please sign in to comment.