Also handle original end case that spawned the issue

Final commit for GH-96 if there's any justine in the world
This commit is contained in:
Zach Brown 2016-03-20 23:15:37 -05:00
parent c0d5c00a34
commit 71f8b70f10

View File

@ -13,7 +13,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
private long ch = System.currentTimeMillis();
private Entity ci = null;
- private boolean cj;
+ protected boolean cj; // Paper - private -> protected
+ protected boolean cj; // Paper - public -> protected
private int containerCounter;
public boolean f;
public int ping;
@ -22,10 +22,12 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
public Entity c(int i) {
- this.cj = true;
+ //this.cj = true; // Paper - Moved to PlayerList#changeDimension
+ //this.cj = true; // Moved down and into PlayerList#changeDimension
if (this.dimension == 1 && i == 1) {
+ this.cj = true; // Paper - Moved down
this.world.kill(this);
if (!this.viewingCredits) {
this.viewingCredits = true;
diff --git a/src/main/java/net/minecraft/server/PlayerList.java b/src/main/java/net/minecraft/server/PlayerList.java
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
--- a/src/main/java/net/minecraft/server/PlayerList.java