@@ -7,8 +7,8 @@
|
||||
+
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
|
||||
@@ -73,6 +75,12 @@
|
||||
import javax.annotation.Nullable;
|
||||
@@ -74,6 +76,12 @@
|
||||
while (iterator.hasNext()) {
|
||||
entityinsentient = (EntityInsentient) iterator.next();
|
||||
if (entityinsentient.isLeashed() && entityinsentient.getLeashHolder() == entityhuman) {
|
||||
@@ -21,7 +21,7 @@
|
||||
entityinsentient.setLeashHolder(this, true);
|
||||
flag = true;
|
||||
}
|
||||
@@ -80,8 +88,11 @@
|
||||
@@ -81,8 +89,11 @@
|
||||
}
|
||||
|
||||
if (!flag) {
|
||||
@@ -35,7 +35,7 @@
|
||||
d0 = 7.0D;
|
||||
list = this.world.a(EntityInsentient.class, new AxisAlignedBB(this.locX - d0, this.locY - d0, this.locZ - d0, this.locX + d0, this.locY + d0, this.locZ + d0));
|
||||
iterator = list.iterator();
|
||||
@@ -89,9 +100,20 @@
|
||||
@@ -90,9 +101,20 @@
|
||||
while (iterator.hasNext()) {
|
||||
entityinsentient = (EntityInsentient) iterator.next();
|
||||
if (entityinsentient.isLeashed() && entityinsentient.getLeashHolder() == this) {
|
||||
|
||||
Reference in New Issue
Block a user