Fix NumberFormatException in InteractionFreezeBlock

This commit is contained in:
Beny 2019-05-15 19:48:02 +01:00
parent 0e4e492cac
commit ea5811800d

View File

@ -113,7 +113,13 @@ public class InteractionFreezeBlock extends HabboItem
if(player == null)
return;
int powerUp = Integer.valueOf(this.getExtradata()) / 1000;
int powerUp;
try {
powerUp = Integer.valueOf(this.getExtradata()) / 1000;
}
catch (NumberFormatException e){
powerUp = 0;
}
if(powerUp >= 2 && powerUp <= 7)
{