mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-23 21:38:00 +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
|
||||
public void onSuppressed(ICaster<?> otherSource) {
|
||||
suppressionCounter = 100;
|
||||
setDirty(true);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -455,7 +456,7 @@ public class SpellDisguise extends AbstractSpell implements ISuppressable, IFlyi
|
|||
|
||||
@Override
|
||||
public float getTargetEyeHeight(IPlayer player) {
|
||||
if (entity != null) {
|
||||
if (entity != null && !getSuppressed()) {
|
||||
if (entity instanceof EntityFallingBlock) {
|
||||
return 0.5F;
|
||||
}
|
||||
|
@ -466,7 +467,7 @@ public class SpellDisguise extends AbstractSpell implements ISuppressable, IFlyi
|
|||
|
||||
@Override
|
||||
public float getTargetBodyHeight(IPlayer player) {
|
||||
if (entity != null) {
|
||||
if (entity != null && !getSuppressed()) {
|
||||
if (entity instanceof EntityFallingBlock) {
|
||||
return 0.9F;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue