even even even more work
This commit is contained in:
@@ -10,10 +10,10 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
+++ b/src/main/java/net/minecraft/server/EntityHorseSkeleton.java
|
||||
@@ -0,0 +0,0 @@ public class EntityHorseSkeleton extends EntityHorseAbstract {
|
||||
|
||||
private final PathfinderGoalHorseTrap bF = new PathfinderGoalHorseTrap(this);
|
||||
private boolean bG;
|
||||
- private int bH;
|
||||
+ private int bH; public int getTrapTime() { return this.bH; } // Paper - OBFHELPER
|
||||
private final PathfinderGoalHorseTrap bD = new PathfinderGoalHorseTrap(this);
|
||||
private boolean bE;
|
||||
- private int bF;
|
||||
+ private int bF; public int getTrapTime() { return this.bF; } // Paper - OBFHELPER
|
||||
|
||||
public EntityHorseSkeleton(EntityTypes<? extends EntityHorseSkeleton> entitytypes, World world) {
|
||||
super(entitytypes, world);
|
||||
@@ -21,15 +21,15 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
return 0.96F;
|
||||
}
|
||||
|
||||
+ public boolean isTrap() { return this.eq(); } // Paper - OBFHELPER
|
||||
public boolean eq() {
|
||||
return this.bG;
|
||||
+ public boolean isTrap() { return this.eN(); } // Paper - OBFHELPER
|
||||
public boolean eN() {
|
||||
return this.bE;
|
||||
}
|
||||
|
||||
+ public void setTrap(boolean trap) { this.r(trap); } // Paper - OBFHELPER
|
||||
public void r(boolean flag) {
|
||||
if (flag != this.bG) {
|
||||
this.bG = flag;
|
||||
+ public void setTrap(boolean trap) { this.t(trap); } // Paper - OBFHELPER
|
||||
public void t(boolean flag) {
|
||||
if (flag != this.bE) {
|
||||
this.bE = flag;
|
||||
diff --git a/src/main/java/net/minecraft/server/PathfinderGoalHorseTrap.java b/src/main/java/net/minecraft/server/PathfinderGoalHorseTrap.java
|
||||
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
||||
--- a/src/main/java/net/minecraft/server/PathfinderGoalHorseTrap.java
|
||||
@@ -39,9 +39,9 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
@Override
|
||||
public void e() {
|
||||
+ if (!new com.destroystokyo.paper.event.entity.SkeletonHorseTrapEvent((org.bukkit.entity.SkeletonHorse) this.a.getBukkitEntity()).callEvent()) return; // Paper
|
||||
DifficultyDamageScaler difficultydamagescaler = this.a.world.getDamageScaler(new BlockPosition(this.a));
|
||||
DifficultyDamageScaler difficultydamagescaler = this.a.world.getDamageScaler(this.a.getChunkCoordinates());
|
||||
|
||||
this.a.r(false);
|
||||
this.a.t(false);
|
||||
diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftSkeletonHorse.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftSkeletonHorse.java
|
||||
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
||||
--- a/src/main/java/org/bukkit/craftbukkit/entity/CraftSkeletonHorse.java
|
||||
|
||||
Reference in New Issue
Block a user