Fixed some issues widh suppressed disguises

This commit is contained in:
Sollace 2019-02-13 22:56:49 +02:00
parent 1b93928361
commit 2bc338c5c2

View file

@ -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;
} }