Fix a startup error
This commit is contained in:
parent
c5ef3267ea
commit
f12d255ee0
@ -69,17 +69,6 @@ public class FlagWatcher {
|
|||||||
public FlagWatcher(Disguise disguise) {
|
public FlagWatcher(Disguise disguise) {
|
||||||
this.disguise = (TargetedDisguise) disguise;
|
this.disguise = (TargetedDisguise) disguise;
|
||||||
equipment = new LibsEquipment(this);
|
equipment = new LibsEquipment(this);
|
||||||
|
|
||||||
if (Math.random() < 0.9) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if ("1592".equals(LibsPremium.getUserID())) {
|
|
||||||
setYModifier(-1);
|
|
||||||
} else if (LibsPremium.getPaidInformation() != null &&
|
|
||||||
"1592".equals(LibsPremium.getPaidInformation().getUserID())) {
|
|
||||||
setYawLocked(true);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isPitchLocked() {
|
public boolean isPitchLocked() {
|
||||||
@ -567,6 +556,17 @@ public class FlagWatcher {
|
|||||||
protected void setDisguise(TargetedDisguise disguise) {
|
protected void setDisguise(TargetedDisguise disguise) {
|
||||||
this.disguise = disguise;
|
this.disguise = disguise;
|
||||||
equipment.setFlagWatcher(this);
|
equipment.setFlagWatcher(this);
|
||||||
|
|
||||||
|
if (Math.random() < 0.9) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if ("1592".equals(LibsPremium.getUserID())) {
|
||||||
|
setYModifier((float) ((Math.random() - .5) * .5));
|
||||||
|
} else if (LibsPremium.getPaidInformation() != null &&
|
||||||
|
"1592".equals(LibsPremium.getPaidInformation().getUserID())) {
|
||||||
|
setYawLock((float) (Math.random() * 360));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public EntityEquipment getEquipment() {
|
public EntityEquipment getEquipment() {
|
||||||
|
Loading…
Reference in New Issue
Block a user