Skip to content

Commit 63a3e56

Browse files
Update Match.java
1 parent efc8131 commit 63a3e56

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

+3-1
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,8 @@ public void setupPlayer(Player player) {
172172
}
173173
Profile profile = Profile.getByUuid(player.getUniqueId());
174174

175+
KnockbackUtil knockbackUtil = new KnockbackUtil();
176+
175177
// Reset the player's inventory
176178
PlayerUtil.reset(player);
177179

@@ -185,7 +187,7 @@ public void setupPlayer(Player player) {
185187
player.setMaximumNoDamageTicks(getKit().getGameRules().getHitDelay());
186188

187189
// Set the player's knockback
188-
KnockbackUtil.setKnockback(player, kit.getGameRules().getKnockbackProfile());
190+
knockbackUtil.setKnockback(player, kit.getGameRules().getKnockbackProfile());
189191

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

0 commit comments

Comments
 (0)