Skip to content

Commit 95a796c

Browse files
Update Match.java
1 parent eba38ec commit 95a796c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/me/lrxh/practice/match/Match.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ public void setupPlayer(Player player) {
185185
player.setMaximumNoDamageTicks(getKit().getGameRules().getHitDelay());
186186

187187
// Set the player's knockback
188-
KnockbackUtil.setKnockback(gamePlayer.getPlayer(), kit.getGameRules().getKnockbackProfile());
188+
KnockbackUtil.setKnockback(profile.getMatch().getGamePlayer(player), kit.getGameRules().getKnockbackProfile());
189189

190190
// If the player has no kits, apply the default kit, otherwise
191191
// give the player a list of kit books to choose from

0 commit comments

Comments
 (0)