File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
server/src/sc/server/gaming Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -370,8 +370,8 @@ private void syncSlot(PlayerSlot slot) throws RescuableClientException {
370
370
Player player = getGame ().onPlayerJoined (); // make new player in gameState of game
371
371
// set attributes for player XXX check whether this is needed for prepared games
372
372
player .setDisplayName (slot .getDescriptor ().getDisplayName ());
373
- player .setShouldBePaused (slot .getDescriptor ().isShouldBePaused ());
374
- player .setCanTimeout (slot .getDescriptor ().isCanTimeout ());
373
+ player .setShouldBePaused (slot .getDescriptor ().getShouldBePaused ());
374
+ player .setCanTimeout (slot .getDescriptor ().getCanTimeout ());
375
375
376
376
if (slot .isEmpty ()) // needed for forced step, if client crashes before joining room
377
377
{
@@ -652,8 +652,7 @@ public void openSlots(SlotDescriptor[] descriptors)
652
652
653
653
for (int i = 0 ; i < descriptors .length ; i ++) {
654
654
this .playerSlots .get (i ).setDescriptor (descriptors [i ]);
655
- // isShouldBePaused should work. If not, change to getShouldBePaused. Calling Kt from Jv may cause issues here
656
- if (descriptors [i ].isShouldBePaused ()) {
655
+ if (descriptors [i ].getShouldBePaused ()) {
657
656
pause (true );
658
657
}
659
658
}
You can’t perform that action at this time.
0 commit comments