mirror of
https://github.com/LeavesMC/Leaves.git
synced 2026-01-04 15:41:31 +00:00
Update Paper
This commit is contained in:
@@ -6,10 +6,10 @@ Subject: [PATCH] Optimize suffocation
|
||||
This patch is Powered by Pufferfish(https://github.com/pufferfish-gg/Pufferfish)
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/world/entity/LivingEntity.java b/src/main/java/net/minecraft/world/entity/LivingEntity.java
|
||||
index f7c08415b99289d0cfb522121bbec1dbb3929119..d704db7227fee370d0df87a7efe24b0ede2b1de8 100644
|
||||
index 3688e262988f012109930bf2d8c2d679e7283d7a..172c6e718ff0ab22e63ecfa867e4462947119972 100644
|
||||
--- a/src/main/java/net/minecraft/world/entity/LivingEntity.java
|
||||
+++ b/src/main/java/net/minecraft/world/entity/LivingEntity.java
|
||||
@@ -411,7 +411,7 @@ public abstract class LivingEntity extends Entity implements Attackable {
|
||||
@@ -412,7 +412,7 @@ public abstract class LivingEntity extends Entity implements Attackable {
|
||||
boolean flag = this instanceof net.minecraft.world.entity.player.Player;
|
||||
|
||||
if (!this.level().isClientSide) {
|
||||
@@ -18,7 +18,7 @@ index f7c08415b99289d0cfb522121bbec1dbb3929119..d704db7227fee370d0df87a7efe24b0e
|
||||
this.hurt(this.damageSources().inWall(), 1.0F);
|
||||
} else if (flag && !this.level().getWorldBorder().isWithinBounds(this.getBoundingBox())) {
|
||||
double d0 = this.level().getWorldBorder().getDistanceToBorder(this) + this.level().getWorldBorder().getDamageSafeZone();
|
||||
@@ -1408,6 +1408,15 @@ public abstract class LivingEntity extends Entity implements Attackable {
|
||||
@@ -1409,6 +1409,15 @@ public abstract class LivingEntity extends Entity implements Attackable {
|
||||
return this.getHealth() <= 0.0F;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user