mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-01 12:42:05 -07:00
Update to MC 1.12-pre2
This commit is contained in:
@@ -5,7 +5,7 @@ Subject: [PATCH] Do not let armorstands drown
|
||||
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/server/EntityArmorStand.java b/src/main/java/net/minecraft/server/EntityArmorStand.java
|
||||
index 7738ca385..5818aa5e9 100644
|
||||
index 091c96411..693f157ea 100644
|
||||
--- a/src/main/java/net/minecraft/server/EntityArmorStand.java
|
||||
+++ b/src/main/java/net/minecraft/server/EntityArmorStand.java
|
||||
@@ -0,0 +0,0 @@ public class EntityArmorStand extends EntityLiving {
|
||||
@@ -20,23 +20,23 @@ index 7738ca385..5818aa5e9 100644
|
||||
// Paper end
|
||||
}
|
||||
diff --git a/src/main/java/net/minecraft/server/EntityLiving.java b/src/main/java/net/minecraft/server/EntityLiving.java
|
||||
index 53486e205..9b7159450 100644
|
||||
index 1277ba3c2..ff2fe1b9d 100644
|
||||
--- a/src/main/java/net/minecraft/server/EntityLiving.java
|
||||
+++ b/src/main/java/net/minecraft/server/EntityLiving.java
|
||||
@@ -0,0 +0,0 @@ public abstract class EntityLiving extends Entity {
|
||||
super.a(d0, flag, iblockdata, blockposition);
|
||||
}
|
||||
|
||||
+ public boolean canBreatheUnderwater() { return this.bF(); } // Paper - OBFHELPER
|
||||
public boolean bF() {
|
||||
+ public boolean canBreatheUnderwater() { return this.bL(); } // Paper - OBFHELPER
|
||||
public boolean bL() {
|
||||
return false;
|
||||
}
|
||||
@@ -0,0 +0,0 @@ public abstract class EntityLiving extends Entity {
|
||||
|
||||
if (this.isAlive()) {
|
||||
if (this.a(Material.WATER)) {
|
||||
- if (!this.bF() && !this.hasEffect(MobEffects.WATER_BREATHING) && !flag1) {
|
||||
+ if (!this.canBreatheUnderwater() && !this.hasEffect(MobEffects.WATER_BREATHING) && !flag1) { // Paper - Use obfhelper
|
||||
- if (!this.bL() && !this.hasEffect(MobEffects.WATER_BREATHING) && !flag1) {
|
||||
+ if (!this.canBreatheUnderwater() && !this.hasEffect(MobEffects.WATER_BREATHING) && !flag1) {
|
||||
this.setAirTicks(this.d(this.getAirTicks()));
|
||||
if (this.getAirTicks() == -20) {
|
||||
this.setAirTicks(0);
|
||||
|
Reference in New Issue
Block a user