mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-24 05:47:59 +01:00
Fixed some issues widh suppressed disguises
This commit is contained in:
parent
1b93928361
commit
2bc338c5c2
1 changed files with 3 additions and 2 deletions
|
@ -77,6 +77,7 @@ public class SpellDisguise extends AbstractSpell implements ISuppressable, IFlyi
|
||||||
@Override
|
@Override
|
||||||
public void onSuppressed(ICaster<?> otherSource) {
|
public void onSuppressed(ICaster<?> otherSource) {
|
||||||
suppressionCounter = 100;
|
suppressionCounter = 100;
|
||||||
|
setDirty(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -455,7 +456,7 @@ public class SpellDisguise extends AbstractSpell implements ISuppressable, IFlyi
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public float getTargetEyeHeight(IPlayer player) {
|
public float getTargetEyeHeight(IPlayer player) {
|
||||||
if (entity != null) {
|
if (entity != null && !getSuppressed()) {
|
||||||
if (entity instanceof EntityFallingBlock) {
|
if (entity instanceof EntityFallingBlock) {
|
||||||
return 0.5F;
|
return 0.5F;
|
||||||
}
|
}
|
||||||
|
@ -466,7 +467,7 @@ public class SpellDisguise extends AbstractSpell implements ISuppressable, IFlyi
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public float getTargetBodyHeight(IPlayer player) {
|
public float getTargetBodyHeight(IPlayer player) {
|
||||||
if (entity != null) {
|
if (entity != null && !getSuppressed()) {
|
||||||
if (entity instanceof EntityFallingBlock) {
|
if (entity instanceof EntityFallingBlock) {
|
||||||
return 0.9F;
|
return 0.9F;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue