player doesn't attack in continuous and fixed event suggestions fixes #552.
This commit is contained in:
1 parent
3875a1708a
commit
b00b5772c9
2 files changed
+6
-3
No files matched your search
@@ -364,10 +364,13 @@ public class EntityPlayerActionPack
|
||||
switch (hit.getType()) {
|
||||
case ENTITY: {
|
||||
EntityHitResult entityHit = (EntityHitResult) hit;
|
||||
player.attack(entityHit.getEntity());
|
||||
if (!action.isContinuous)
|
||||
{
|
||||
player.attack(entityHit.getEntity());
|
||||
player.swingHand(Hand.MAIN_HAND);
|
||||
}
|
||||
player.resetLastAttackedTicks();
|
||||
player.updateLastActionTime();
|
||||
player.swingHand(Hand.MAIN_HAND);
|
||||
return true;
|
||||
}
|
||||
case BLOCK: {
|
||||
|
||||
Reference in new issue
Block a user