Update to MC 1.12-pre2
This commit is contained in:
@@ -20,35 +20,24 @@ index fd606ee14..c00fa83d5 100644
|
||||
+ }
|
||||
}
|
||||
diff --git a/src/main/java/net/minecraft/server/EntityPlayer.java b/src/main/java/net/minecraft/server/EntityPlayer.java
|
||||
index f7edd9aa1..dbc5cf632 100644
|
||||
index 3ef2ffd2d..586c4ad0d 100644
|
||||
--- a/src/main/java/net/minecraft/server/EntityPlayer.java
|
||||
+++ b/src/main/java/net/minecraft/server/EntityPlayer.java
|
||||
@@ -0,0 +0,0 @@ public class EntityPlayer extends EntityHuman implements ICrafting {
|
||||
return this.world.pvpMode;
|
||||
}
|
||||
|
||||
+
|
||||
+ // Paper start - Give "theEnd2" achievement if the player doesn't already have it
|
||||
+ private void giveTheEnd2() {
|
||||
+ if (!this.a(AchievementList.D)) {
|
||||
+ this.b(AchievementList.D);
|
||||
+ }
|
||||
+ }
|
||||
+ // Paper end
|
||||
+
|
||||
@Nullable
|
||||
public Entity c(int i) {
|
||||
if (this.isSleeping()) return this; // CraftBukkit - SPIGOT-3154
|
||||
private long co = System.currentTimeMillis();
|
||||
private Entity cp;
|
||||
public boolean worldChangeInvuln;
|
||||
- private boolean cr;
|
||||
+ private boolean cr; private void setHasSeenCredits(boolean has) { this.cr = has; } // Paper - OBFHELPER
|
||||
private final RecipeBookServer cs = new RecipeBookServer();
|
||||
private Vec3D ct;
|
||||
private int cu;
|
||||
@@ -0,0 +0,0 @@ public class EntityPlayer extends EntityHuman implements ICrafting {
|
||||
this.world.kill(this);
|
||||
if (!this.viewingCredits) {
|
||||
this.viewingCredits = true;
|
||||
- if (this.a(AchievementList.D)) {
|
||||
+ // Paper start - Allow configurable end portal credits
|
||||
+ if (world.paperConfig.disableEndCredits || this.a(AchievementList.D)) {
|
||||
+ this.giveTheEnd2();
|
||||
+ // Paper end
|
||||
this.playerConnection.sendPacket(new PacketPlayOutGameStateChange(4, 0.0F));
|
||||
} else {
|
||||
this.b((Statistic) AchievementList.D);
|
||||
+ if (world.paperConfig.disableEndCredits) this.setHasSeenCredits(true); // Paper - Toggle to always disable end credits
|
||||
this.playerConnection.sendPacket(new PacketPlayOutGameStateChange(4, this.cr ? 0.0F : 1.0F));
|
||||
this.cr = true;
|
||||
}
|
||||
--
|
||||
Reference in New Issue
Block a user