mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2025-01-18 23:46:28 +01:00
Fix NumberFormatException in InteractionFreezeBlock
This commit is contained in:
parent
0e4e492cac
commit
ea5811800d
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user