forked from 2009Scape/Server
Changed everything regarding hardcore death to boolean format
This commit is contained in:
parent
5cdbab2117
commit
cc29ed613b
1 changed files with 5 additions and 4 deletions
|
|
@ -108,7 +108,7 @@ public final class ActivityData implements SavingModule {
|
|||
/**
|
||||
* The death status of a Hardcore Iron Man
|
||||
*/
|
||||
private int hardcoreDeath;
|
||||
private boolean hardcoreDeath;
|
||||
|
||||
/**
|
||||
* Constructs a new {@code ActivityInfo} {@code Object}.
|
||||
|
|
@ -237,7 +237,8 @@ public final class ActivityData implements SavingModule {
|
|||
borkKills = buffer.get();
|
||||
break;
|
||||
case 21:
|
||||
hardcoreDeath = buffer.getInt();
|
||||
hardcoreDeath = SavedData.getBoolean(buffer);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -641,11 +642,11 @@ public final class ActivityData implements SavingModule {
|
|||
* gets the current value of an Hardcore Iron Man's death status
|
||||
* @return the value of a Hardcore Iron Man's death status
|
||||
*/
|
||||
public int getHardcoreDeath() {
|
||||
public boolean getHardcoreDeath() {
|
||||
return hardcoreDeath;
|
||||
}
|
||||
|
||||
public void setHardcoreDeath(int hardcoreDeath) {
|
||||
public void setHardcoreDeath(boolean hardcoreDeath) {
|
||||
this.hardcoreDeath = hardcoreDeath;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue