mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-27 10:41:27 +01:00
ed0354be30
By: Doc <nachito94@msn.com>
23 lines
922 B
Diff
23 lines
922 B
Diff
--- a/net/minecraft/world/entity/monster/EntityVex.java
|
|
+++ b/net/minecraft/world/entity/monster/EntityVex.java
|
|
@@ -49,8 +49,8 @@
|
|
EntityInsentient owner;
|
|
@Nullable
|
|
private BlockPosition boundOrigin;
|
|
- private boolean hasLimitedLife;
|
|
- private int limitedLifeTicks;
|
|
+ public boolean hasLimitedLife; // CraftBukkit - PAIL, private -> public
|
|
+ public int limitedLifeTicks; // CraftBukkit - PAIL, private -> public
|
|
|
|
public EntityVex(EntityTypes<? extends EntityVex> entitytypes, World world) {
|
|
super(entitytypes, world);
|
|
@@ -368,7 +368,7 @@
|
|
|
|
@Override
|
|
public void start() {
|
|
- EntityVex.this.setTarget(EntityVex.this.owner.getTarget());
|
|
+ EntityVex.this.setTarget(EntityVex.this.owner.getTarget(), org.bukkit.event.entity.EntityTargetEvent.TargetReason.OWNER_ATTACKED_TARGET, true); // CraftBukkit
|
|
super.start();
|
|
}
|
|
}
|