Skip to content

Commit

Permalink
add some extra error handling/stupid proofing
Browse files Browse the repository at this point in the history
  • Loading branch information
thiakil committed Jul 19, 2017
1 parent 1c6744f commit 056e4aa
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,11 @@ public void onPacketData( final INetworkInfo manager, final INetHandler handler,
@Override
public void call( final AppEngPacket appEngPacket )
{
appEngPacket.clientPacketData( manager, appEngPacket, Minecraft.getMinecraft().player );
try{
appEngPacket.clientPacketData( manager, appEngPacket, Minecraft.getMinecraft().player );
} catch( Throwable t ){
AELog.error( "Packethandler threw an exception, please report!", t );
}
}
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,12 @@ public void onPacketData( final INetworkInfo manager, final INetHandler handler,
@Override
public void call( final AppEngPacket appEngPacket )
{
appEngPacket.serverPacketData( manager, appEngPacket, player );
try
{
appEngPacket.serverPacketData( manager, appEngPacket, player );
} catch( Throwable t ){
AELog.error( "Packethandler threw an exception, please report!", t );
}
}
};

Expand Down

0 comments on commit 056e4aa

Please sign in to comment.