Flip output for queued resource pack status passthrough conditional (#659)

* Flip output for queued resource pack status passthrough conditional

* Hotfix to queue the intended resource pack info.
This commit is contained in:
Corey Shupe 2022-03-03 01:52:21 -05:00 committed by GitHub
parent d4722eb2f8
commit 9c44aff8c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -165,7 +165,7 @@ public class BackendPlaySessionHandler implements MinecraftSessionHandler {
.setOriginalOrigin(ResourcePackInfo.Origin.DOWNSTREAM_SERVER);
}
serverConn.getPlayer().queueResourcePack(builder.build());
serverConn.getPlayer().queueResourcePack(toSend);
} else if (serverConn.getConnection() != null) {
serverConn.getConnection().write(new ResourcePackResponse(
packet.getHash(),

View File

@ -986,7 +986,7 @@ public class ConnectedPlayer implements MinecraftConnectionAssociation, Player {
}
return queued != null
&& queued.getOriginalOrigin() == ResourcePackInfo.Origin.DOWNSTREAM_SERVER;
&& queued.getOriginalOrigin() != ResourcePackInfo.Origin.DOWNSTREAM_SERVER;
}
/**