Revert "Fix sparks/corporea sparks blocking arrows and digging"

Doing this prevents the wand from targeting it too...
This reverts commit 5393a5202a.
This commit is contained in:
Vincent Lee committed 2018-12-25 22:15:27 -06:00
1 parent fb8ebd8ca7
commit 43734ee338
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 canBeAttackedWithItem() {
return false;
public boolean canBeCollidedWith() {
return true;
}
@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,11 +76,6 @@ public class EntitySpark extends Entity implements ISparkEntity {
return new ItemStack(ModItems.spark);
}
@Override
public boolean canBeAttackedWithItem() {
return false;
}
@Override
public void onUpdate() {
super.onUpdate();
@@ -236,6 +231,11 @@ 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);