Skip to content

Commit

Permalink
changed null check to an early return
Browse files Browse the repository at this point in the history
  • Loading branch information
kyoi-the-fox committed Mar 20, 2024
1 parent 853e7fc commit fe80535
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,7 @@ public boolean isEnchantmentValid(short id) {
}

private static void sendPlayerInformation(EntityPlayer player, int number) {
if (player == null) return;
switch (number) {
case 1:
player.addChatComponentMessage(
Expand Down

0 comments on commit fe80535

Please sign in to comment.