mirror of
https://github.com/PurpurMC/Purpur.git
synced 2026-02-18 08:57:44 +01:00
Clean up teleport outside border patch
Add sleeping, inventory, and toWorld checks
This commit is contained in:
@@ -2371,10 +2371,10 @@ index bdff236883..9ee03b233b 100644
|
||||
float f1 = 1.0F + (this.random.nextFloat() - this.random.nextFloat()) * 0.2F;
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/server/EntityLiving.java b/src/main/java/net/minecraft/server/EntityLiving.java
|
||||
index a7e0f8fe3d..17c3b43c9b 100644
|
||||
index 0fe6f90ea6..ce29695c69 100644
|
||||
--- a/src/main/java/net/minecraft/server/EntityLiving.java
|
||||
+++ b/src/main/java/net/minecraft/server/EntityLiving.java
|
||||
@@ -465,7 +465,7 @@ public abstract class EntityLiving extends Entity {
|
||||
@@ -459,7 +459,7 @@ public abstract class EntityLiving extends Entity {
|
||||
|
||||
@Override
|
||||
public boolean bt() {
|
||||
@@ -2383,7 +2383,7 @@ index a7e0f8fe3d..17c3b43c9b 100644
|
||||
}
|
||||
|
||||
protected void cU() {
|
||||
@@ -2185,7 +2185,7 @@ public abstract class EntityLiving extends Entity {
|
||||
@@ -2179,7 +2179,7 @@ public abstract class EntityLiving extends Entity {
|
||||
return 0.42F * this.getBlockJumpFactor();
|
||||
}
|
||||
|
||||
@@ -2392,7 +2392,7 @@ index a7e0f8fe3d..17c3b43c9b 100644
|
||||
float f = this.dJ();
|
||||
|
||||
if (this.hasEffect(MobEffects.JUMP)) {
|
||||
@@ -2434,10 +2434,12 @@ public abstract class EntityLiving extends Entity {
|
||||
@@ -2428,10 +2428,12 @@ public abstract class EntityLiving extends Entity {
|
||||
return this.onGround ? this.dN() * (0.21600002F / (f * f * f)) : this.aE;
|
||||
}
|
||||
|
||||
@@ -2405,7 +2405,7 @@ index a7e0f8fe3d..17c3b43c9b 100644
|
||||
public void q(float f) {
|
||||
this.bu = f;
|
||||
}
|
||||
@@ -2837,6 +2839,20 @@ public abstract class EntityLiving extends Entity {
|
||||
@@ -2831,6 +2833,20 @@ public abstract class EntityLiving extends Entity {
|
||||
}
|
||||
}
|
||||
// Purpur end
|
||||
@@ -3210,7 +3210,7 @@ index a3a428da99..cf7de01271 100644
|
||||
this.targetSelector.a(2, new PathfinderGoalNearestAttackableTarget<>(this, EntityHuman.class, true));
|
||||
this.targetSelector.a(3, new PathfinderGoalNearestAttackableTarget<>(this, EntityVillagerAbstract.class, false));
|
||||
diff --git a/src/main/java/net/minecraft/server/EntityPlayer.java b/src/main/java/net/minecraft/server/EntityPlayer.java
|
||||
index 563eb77ce3..2992c51a28 100644
|
||||
index 05f9a81854..b5f6a98fe4 100644
|
||||
--- a/src/main/java/net/minecraft/server/EntityPlayer.java
|
||||
+++ b/src/main/java/net/minecraft/server/EntityPlayer.java
|
||||
@@ -506,6 +506,15 @@ public class EntityPlayer extends EntityHuman implements ICrafting {
|
||||
|
||||
Reference in New Issue
Block a user