mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-07-04 14:25:32 +02: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)
|
if(player == null)
|
||||||
return;
|
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)
|
if(powerUp >= 2 && powerUp <= 7)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user