@@ -20,8 +20,8 @@
|
||||
+ bindPlayerMobs(entityhuman, world, blockposition, itemactioncontext.getHand()); // CraftBukkit - Pass hand
|
||||
}
|
||||
|
||||
world.gameEvent(GameEvent.BLOCK_ATTACH, blockposition, GameEvent.a.of((Entity) entityhuman));
|
||||
@@ -41,7 +46,7 @@
|
||||
return EnumInteractionResult.sidedSuccess(world.isClientSide);
|
||||
@@ -40,7 +45,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
EntityLeash entityleash = null;
|
||||
boolean flag = false;
|
||||
double d0 = 7.0D;
|
||||
@@ -57,9 +62,26 @@
|
||||
@@ -56,9 +61,26 @@
|
||||
if (entityinsentient.getLeashHolder() == entityhuman) {
|
||||
if (entityleash == null) {
|
||||
entityleash = EntityLeash.getOrCreateKnot(world, blockposition);
|
||||
@@ -57,7 +57,7 @@
|
||||
entityinsentient.setLeashedTo(entityleash, true);
|
||||
flag = true;
|
||||
}
|
||||
@@ -67,4 +89,10 @@
|
||||
@@ -70,4 +92,10 @@
|
||||
|
||||
return flag ? EnumInteractionResult.SUCCESS : EnumInteractionResult.PASS;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user