Did some things...
This commit is contained in:
parent
fedbf2bc8f
commit
3f5eef8c30
|
@ -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) {
|
||||||
|
|
|
@ -258,13 +258,15 @@ 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) {
|
||||||
this.teams.remove(parScorePlayerTeam.getRegisteredName());
|
if(parScorePlayerTeam != null) {
|
||||||
|
this.teams.remove(parScorePlayerTeam.getRegisteredName());
|
||||||
|
|
||||||
for (String s : parScorePlayerTeam.getMembershipCollection()) {
|
for (String s : parScorePlayerTeam.getMembershipCollection()) {
|
||||||
this.teamMemberships.remove(s);
|
this.teamMemberships.remove(s);
|
||||||
|
}
|
||||||
|
|
||||||
|
this.func_96513_c(parScorePlayerTeam);
|
||||||
}
|
}
|
||||||
|
|
||||||
this.func_96513_c(parScorePlayerTeam);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**+
|
/**+
|
||||||
|
@ -303,13 +305,13 @@ public class Scoreboard {
|
||||||
* is thrown.
|
* is thrown.
|
||||||
*/
|
*/
|
||||||
public void removePlayerFromTeam(String parString1, ScorePlayerTeam parScorePlayerTeam) {
|
public void removePlayerFromTeam(String parString1, ScorePlayerTeam parScorePlayerTeam) {
|
||||||
if (this.getPlayersTeam(parString1) != parScorePlayerTeam) {
|
if(parScorePlayerTeam != null) {
|
||||||
throw new IllegalStateException(
|
if (this.getPlayersTeam(parString1) != parScorePlayerTeam) {
|
||||||
"Player is either on another team or not on any team. Cannot remove from team \'"
|
throw new IllegalStateException("Player is either on another team or not on any team. Cannot remove from team \'" + parScorePlayerTeam.getRegisteredName() + "\'.");
|
||||||
+ parScorePlayerTeam.getRegisteredName() + "\'.");
|
} else {
|
||||||
} else {
|
this.teamMemberships.remove(parString1);
|
||||||
this.teamMemberships.remove(parString1);
|
parScorePlayerTeam.getMembershipCollection().remove(parString1);
|
||||||
parScorePlayerTeam.getMembershipCollection().remove(parString1);
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user