Did some things...

This commit is contained in:
peytonplayz595 2023-09-10 07:35:51 -05:00
parent fedbf2bc8f
commit 3f5eef8c30
2 changed files with 15 additions and 13 deletions

View File

@ -1261,7 +1261,7 @@ public class Minecraft implements IThreadListener {
this.mcProfiler.endStartSection("textures"); this.mcProfiler.endStartSection("textures");
if (!this.isGamePaused) { if (!this.isGamePaused) {
this.renderEngine.tick(); this.renderEngine.tick();
GlStateManager.viewport(0, 0, displayWidth, displayHeight); // to be safe //GlStateManager.viewport(0, 0, displayWidth, displayHeight); // to be safe
} }
if (this.currentScreen == null && this.thePlayer != null) { if (this.currentScreen == null && this.thePlayer != null) {

View File

@ -258,6 +258,7 @@ public class Scoreboard {
* memberships and broadcasts the deletion to all players * memberships and broadcasts the deletion to all players
*/ */
public void removeTeam(ScorePlayerTeam parScorePlayerTeam) { public void removeTeam(ScorePlayerTeam parScorePlayerTeam) {
if(parScorePlayerTeam != null) {
this.teams.remove(parScorePlayerTeam.getRegisteredName()); this.teams.remove(parScorePlayerTeam.getRegisteredName());
for (String s : parScorePlayerTeam.getMembershipCollection()) { for (String s : parScorePlayerTeam.getMembershipCollection()) {
@ -266,6 +267,7 @@ public class Scoreboard {
this.func_96513_c(parScorePlayerTeam); this.func_96513_c(parScorePlayerTeam);
} }
}
/**+ /**+
* Adds a player to the given team * Adds a player to the given team
@ -303,15 +305,15 @@ public class Scoreboard {
* is thrown. * is thrown.
*/ */
public void removePlayerFromTeam(String parString1, ScorePlayerTeam parScorePlayerTeam) { public void removePlayerFromTeam(String parString1, ScorePlayerTeam parScorePlayerTeam) {
if(parScorePlayerTeam != null) {
if (this.getPlayersTeam(parString1) != parScorePlayerTeam) { if (this.getPlayersTeam(parString1) != parScorePlayerTeam) {
throw new IllegalStateException( throw new IllegalStateException("Player is either on another team or not on any team. Cannot remove from team \'" + parScorePlayerTeam.getRegisteredName() + "\'.");
"Player is either on another team or not on any team. Cannot remove from team \'"
+ parScorePlayerTeam.getRegisteredName() + "\'.");
} else { } else {
this.teamMemberships.remove(parString1); this.teamMemberships.remove(parString1);
parScorePlayerTeam.getMembershipCollection().remove(parString1); parScorePlayerTeam.getMembershipCollection().remove(parString1);
} }
} }
}
/**+ /**+
* Retrieve all registered ScorePlayerTeam names * Retrieve all registered ScorePlayerTeam names