Fix sparks/corporea sparks blocking arrows and digging

This commit is contained in:
Vincent Lee committed 2018-12-20 15:29:08 -06:00
1 parent 11ea3f9ee6
commit 5393a5202a
2 files changed
+9 -9

No files matched your search

@@ -55,12 +55,12 @@ public class EntityCorporeaSpark extends Entity implements ICorporeaSpark {
public EntityCorporeaSpark(World world) {
super(world);
setSize(0.1F, 0.5F);
isImmuneToFire = true;
}
@Override
protected void entityInit() {
setSize(0.1F, 0.5F);
dataManager.register(MASTER, false);
dataManager.register(NETWORK, 0);
dataManager.register(ITEM_DISPLAY_TICKS, 0);
@@ -74,8 +74,8 @@ public class EntityCorporeaSpark extends Entity implements ICorporeaSpark {
}
@Override
public boolean canBeCollidedWith() {
return true;
public boolean canBeAttackedWithItem() {
return false;
}
@Override
@@ -61,12 +61,12 @@ public class EntitySpark extends Entity implements ISparkEntity {
public EntitySpark(World world) {
super(world);
setSize(0.1F, 0.5F);
isImmuneToFire = true;
}
@Override
protected void entityInit() {
setSize(0.1F, 0.5F);
dataManager.register(UPGRADE, 0);
}
@@ -76,6 +76,11 @@ public class EntitySpark extends Entity implements ISparkEntity {
return new ItemStack(ModItems.spark);
}
@Override
public boolean canBeAttackedWithItem() {
return false;
}
@Override
public void onUpdate() {
super.onUpdate();
@@ -231,11 +236,6 @@ public class EntitySpark extends Entity implements ISparkEntity {
setDead();
}
@Override
public boolean canBeCollidedWith() {
return true;
}
@Override
public boolean processInitialInteract(EntityPlayer player, EnumHand hand) {
ItemStack stack = player.getHeldItem(hand);