mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2025-01-19 07:56:26 +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)
|
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