Skip to content

Commit

Permalink
0.3.0 Player Null Check in Message Packet
Browse files Browse the repository at this point in the history
Simple safety check...
  • Loading branch information
Charles445 committed Apr 20, 2020
1 parent fddb1b1 commit 8400929
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ public static void execute()
{
EntityPlayer player = Minecraft.getMinecraft().player;

//Safety check...
if(player==null)
return;

//Try the clientside dismount
player.dismountRidingEntity();

Expand Down

0 comments on commit 8400929

Please sign in to comment.