Skip to content

Commit 5a51e8e

Browse files
committed
Fix typo Kockback -> Knockback
1 parent dcc49e7 commit 5a51e8e

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

loader/src/main/java/com/fox2code/foxloader/event/interaction/PlayerAttackEntityEvent.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,13 @@
3434
public final class PlayerAttackEntityEvent extends PlayerEvent implements Event.Cancellable {
3535
private final ItemStack heldItem;
3636
private final Entity target;
37-
private boolean useExtraKockback;
37+
private boolean useExtraKnockback;
3838

3939
public PlayerAttackEntityEvent(@NotNull EntityPlayer entityPlayer, @Nullable ItemStack heldItem, @NotNull Entity target) {
4040
super(entityPlayer);
4141
this.heldItem = heldItem;
4242
this.target = target;
43-
this.useExtraKockback = target.isSprinting();
43+
this.useExtraKnockback = target.isSprinting();
4444
}
4545

4646
@Nullable public ItemStack getHeldItem() {
@@ -51,11 +51,11 @@ public PlayerAttackEntityEvent(@NotNull EntityPlayer entityPlayer, @Nullable Ite
5151
return this.target;
5252
}
5353

54-
public boolean getUseExtraKockback() {
55-
return this.useExtraKockback;
54+
public boolean getUseExtraKnockback() {
55+
return this.useExtraKnockback;
5656
}
5757

58-
public void setUseExtraKockback(boolean useExtraKockback) {
59-
this.useExtraKockback = useExtraKockback;
58+
public void setUseExtraKnockback(boolean useExtraKockback) {
59+
this.useExtraKnockback = useExtraKockback;
6060
}
6161
}

loader/src/main/java/com/fox2code/foxloader/internal/InternalInteractionHooks.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ public static boolean sendPlayerAttackEntityEvent(EntityPlayer player, Entity ta
120120
new PlayerAttackEntityEvent(player, player.inventory.getCurrentItem(), target);
121121
PLAYER_ATTACK_ENTITY_EVENT.callEvent(playerAttackEntityEvent);
122122
player.setSprinting(!playerAttackEntityEvent.isCancelled() &&
123-
playerAttackEntityEvent.getUseExtraKockback());
123+
playerAttackEntityEvent.getUseExtraKnockback());
124124
return playerAttackEntityEvent.isCancelled();
125125
}
126126

0 commit comments

Comments
 (0)